mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-08 02:46:15 -05:00
Added index signature case.
This commit is contained in:
@@ -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");
|
||||
Reference in New Issue
Block a user