2014-07-13 01:04:16 +02:00
|
|
|
/// <reference path='fourslash.ts'/>
|
|
|
|
|
|
|
|
////interface I<T> {
|
|
|
|
//// a: T;
|
|
|
|
//// b: I<T>;
|
|
|
|
//// c: I<I<T>>;
|
|
|
|
////}
|
|
|
|
////var x: I<number>;
|
|
|
|
////var y/*1*/y = x.c.c.c.c.c.b;
|
|
|
|
////var a/*2*/a = x.a;
|
|
|
|
////var b/*3*/b = x.b;
|
|
|
|
////var c/*4*/c = x.c;
|
|
|
|
////var d/*5*/d = x.c.a;
|
|
|
|
////var e/*6*/e = x.c.b;
|
|
|
|
////var f/*7*/f = x.c.c;
|
|
|
|
|
|
|
|
goTo.marker('1');
|
2014-09-29 18:45:39 +02:00
|
|
|
verify.quickInfoIs('(var) yy: I<I<I<I<I<I<number>>>>>>');
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
goTo.marker('2');
|
2014-09-29 18:45:39 +02:00
|
|
|
verify.quickInfoIs('(var) aa: number');
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
goTo.marker('3');
|
2014-09-29 18:45:39 +02:00
|
|
|
verify.quickInfoIs('(var) bb: I<number>');
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
goTo.marker('4');
|
2014-09-29 18:45:39 +02:00
|
|
|
verify.quickInfoIs('(var) cc: I<I<number>>');
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
goTo.marker('5');
|
2014-09-29 18:45:39 +02:00
|
|
|
verify.quickInfoIs('(var) dd: I<number>');
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
goTo.marker('6');
|
2014-09-29 18:45:39 +02:00
|
|
|
verify.quickInfoIs('(var) ee: I<I<number>>');
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
goTo.marker('7');
|
2014-09-29 18:45:39 +02:00
|
|
|
verify.quickInfoIs('(var) ff: I<I<I<number>>>');
|