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.
20 lines
456 B
TypeScript
20 lines
456 B
TypeScript
/// <reference path='fourslash.ts'/>
|
|
|
|
////module M {
|
|
//// interface A<T> {
|
|
//// (): string;
|
|
//// (x: T): T;
|
|
//// }
|
|
//// interface A<T> {
|
|
//// (x: T, y: number): T;
|
|
//// <U>(x: U, y: T): U;
|
|
//// }
|
|
//// var a: A<boolean>;
|
|
//// var r = a();
|
|
//// var r2 = a(true);
|
|
//// var r3 = a(true, 2);
|
|
//// var /*1*/r4 = a(1, true);
|
|
////}
|
|
|
|
goTo.marker('1');
|
|
verify.quickInfoIs("var r4: number");
|