TypeScript/tests/cases/fourslash/genericWithSpecializedProperties3.ts
Cyrus Najmabadi eed6f0deca Use an output format for quickinfo that more closely matches the original source.
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.
2015-03-24 00:16:49 -07:00

24 lines
577 B
TypeScript

/// <reference path='fourslash.ts'/>
////interface Foo<T, U> {
//// x: Foo<T, U>;
//// y: Foo<U, U>;
////}
////var f: Foo<number, string>;
////var /*1*/xx = f.x;
////var /*2*/yy = f.y;
////var f2: Foo<string, number>;
////var /*3*/x2 = f2.x;
////var /*4*/y2 = f2.y;
goTo.marker('1');
verify.quickInfoIs('var xx: Foo<number, string>');
goTo.marker('2');
verify.quickInfoIs('var yy: Foo<string, string>');
goTo.marker('3');
verify.quickInfoIs('var x2: Foo<string, number>');
goTo.marker('4');
verify.quickInfoIs('var y2: Foo<number, number>');