i.e. use "var v: string" instead of "(var) v: string". The parens case should only be used when we're using an english description instead of an actual language construct.
12 lines
222 B
TypeScript
12 lines
222 B
TypeScript
/// <reference path='fourslash.ts'/>
|
|
|
|
////interface I {
|
|
//// [x: number]: string;
|
|
//// [x: number]: number;
|
|
////}
|
|
|
|
////var i: I;
|
|
////var /**/r = i[1];
|
|
|
|
goTo.marker();
|
|
verify.quickInfoIs('var r: string');
|