File tree 2 files changed +41
-0
lines changed
2 files changed +41
-0
lines changed Original file line number Diff line number Diff line change
1
+ ///<reference path="fourslash.ts" />
2
+
3
+ //// type Ctor<AA> = new () => A/*1*/A;
4
+ //// type MixinCtor<AA> = new () => AA & { constructor: MixinCtor<A/*2*/A> };
5
+ //// type NestedCtor<AA> = new() => AA & (new () => AA & { constructor: NestedCtor<A/*3*/A> });
6
+ //// type Method<AA> = { method(): A/*4*/A };
7
+ //// type Construct<AA> = { new(): A/*5*/A };
8
+
9
+
10
+ goTo . marker ( '1' ) ;
11
+ verify . quickInfoIs ( '(type parameter) AA in type Ctor<AA>' ) ;
12
+ goTo . marker ( '2' ) ;
13
+ verify . quickInfoIs ( '(type parameter) AA in type MixinCtor<AA>' ) ;
14
+ goTo . marker ( '3' ) ;
15
+ verify . quickInfoIs ( '(type parameter) AA in type NestedCtor<AA>' ) ;
16
+ goTo . marker ( '4' ) ;
17
+ verify . quickInfoIs ( '(type parameter) AA in type Method<AA>' ) ;
18
+ goTo . marker ( '5' ) ;
19
+ verify . quickInfoIs ( '(type parameter) AA in type Construct<AA>' ) ;
Original file line number Diff line number Diff line change
1
+ /// <reference path="fourslash.ts" />
2
+
3
+ //// type Call<AA> = { (): A/*1*/A };
4
+ //// type Index<AA> = {[foo: string]: A/*2*/A};
5
+ //// type GenericMethod<AA> = { method<BB>(): A/*3*/A & B/*4*/B }
6
+ //// type Nesting<TT> = { method<UU>(): new <WW>() => T/*5*/T & U/*6*/U & W/*7*/W };
7
+
8
+ goTo . marker ( '1' ) ;
9
+ verify . quickInfoIs ( '(type parameter) AA in type Call<AA>' ) ;
10
+ goTo . marker ( '2' ) ;
11
+ verify . quickInfoIs ( '(type parameter) AA in type Index<AA>' ) ;
12
+ goTo . marker ( '3' ) ;
13
+ verify . quickInfoIs ( '(type parameter) AA in type GenericMethod<AA>' ) ;
14
+ goTo . marker ( '4' ) ;
15
+ verify . quickInfoIs ( '(type parameter) BB in method<BB>(): AA & BB' ) ;
16
+ goTo . marker ( '5' ) ;
17
+ verify . quickInfoIs ( '(type parameter) TT in type Nesting<TT>' ) ;
18
+ goTo . marker ( '6' ) ;
19
+ verify . quickInfoIs ( '(type parameter) UU in method<UU>(): new <WW>() => TT & UU & WW' ) ;
20
+ goTo . marker ( '7' ) ;
21
+ verify . quickInfoIs ( '(type parameter) WW in <WW>(): TT & UU & WW' ) ;
22
+
You can’t perform that action at this time.
0 commit comments