Added index signature case.
This commit is contained in:
parent
0aa3a72d5b
commit
f2a7367e9b
2 changed files with 24 additions and 0 deletions
|
@ -0,0 +1,11 @@
|
|||
/// <reference path='fourslash.ts' />
|
||||
|
||||
|
||||
////class C {
|
||||
//// [foo: string]: typeof /*1*/
|
||||
////}
|
||||
|
||||
|
||||
goTo.marker("1");
|
||||
verify.completionListContains("foo");
|
||||
verify.completionListContains("C");
|
|
@ -0,0 +1,13 @@
|
|||
/// <reference path='fourslash.ts' />
|
||||
|
||||
|
||||
////class C {
|
||||
//// [foo: /*1*/
|
||||
////}
|
||||
|
||||
goTo.marker("1");
|
||||
verify.completionListContains("C");
|
||||
verify.completionListContains("foo"); // ideally this shouldn't show up for a type
|
||||
edit.insert("typeof ");
|
||||
verify.completionListContains("C");
|
||||
verify.completionListContains("foo");
|
Loading…
Reference in a new issue