mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 12:51:30 -05:00
Also fix the case where we are to the right of a spread expr
This commit is contained in:
17
tests/cases/fourslash/tsxCompletion7.ts
Normal file
17
tests/cases/fourslash/tsxCompletion7.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
//@Filename: file.tsx
|
||||
//// declare module JSX {
|
||||
//// interface Element { }
|
||||
//// interface IntrinsicElements {
|
||||
//// div: { ONE: string; TWO: number; }
|
||||
//// }
|
||||
//// }
|
||||
//// let y = { ONE: '' };
|
||||
//// var x = <div {...y} /**/ />;
|
||||
|
||||
goTo.marker();
|
||||
|
||||
verify.completionListContains("ONE");
|
||||
verify.completionListContains("TWO");
|
||||
verify.not.completionListAllowsNewIdentifier();
|
||||
Reference in New Issue
Block a user