a9d808bd0d
It is now obvious that this only works when there's a contextual type for the object literal.
17 lines
476 B
TypeScript
17 lines
476 B
TypeScript
//// function overloadFunc(props: {
|
|
//// /** @deprecated */
|
|
//// a: boolean;
|
|
//// c?: boolean;
|
|
//// }): JSX.Element
|
|
//// function overloadFunc(props: { a: boolean; b: boolean }): JSX.Element
|
|
//// function overloadFunc(_props: { a: boolean; b?: boolean; c?: boolean }) {
|
|
//// return <div />;
|
|
//// }
|
|
|
|
//// overloadFunc({ [|a|]: true });
|
|
//// overloadFunc({ a: true, b: true });
|
|
|
|
const ranges = test.ranges();
|
|
|
|
verify.getSuggestionDiagnostics([])
|