2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/superWithGenerics.ts ===
|
|
|
|
declare class B<T> {
|
|
|
|
>B : B<T>
|
|
|
|
>T : T
|
|
|
|
|
|
|
|
m<U>(): B<U>;
|
|
|
|
>m : <U>() => B<U>
|
|
|
|
>U : U
|
2014-08-19 04:56:03 +02:00
|
|
|
>B : B<T>
|
2014-08-15 23:33:16 +02:00
|
|
|
>U : U
|
|
|
|
|
|
|
|
static g(): B<any>;
|
2014-08-25 19:36:12 +02:00
|
|
|
>g : () => B<any>
|
2014-08-19 04:56:03 +02:00
|
|
|
>B : B<T>
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
class D extends B<any> {
|
|
|
|
>D : D
|
2014-08-19 04:56:03 +02:00
|
|
|
>B : B<T>
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
constructor() {
|
|
|
|
super();
|
|
|
|
>super() : void
|
2014-08-28 21:31:37 +02:00
|
|
|
>super : typeof B
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|