Open
Description
interface XX {
paddingLeft: string;
}
declare var x: XX
declare function clonElement<Q>(props?: object): void;
clonElement({ style: {
paddingLeft: 'hi',
...x
}})
Expected behavior:
One error on paddingLeft: 'hi'
: 'paddingLeft' is specified more than once, so this usage will be overwritten.
Actual behavior:
Two errors.
Our old commit of ant-design issues this error 8 times. This is probably just a result of (1) not caching the type from checking object literals (2) checking object literals multiple times during resolveCall.
Not high priority -- I'm not sure it's observable from VS Code -- and probably expensive to fix, depending on whether the reason that we decided to not cache object literal types is still true.