Also fix the case where we are to the right of a spread expr

This commit is contained in:
Ryan Cavanaugh
2015-07-31 14:05:43 -07:00
parent f224b5022e
commit a45e9a91bf
2 changed files with 24 additions and 2 deletions

View 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();