19 lines
337 B
Text
19 lines
337 B
Text
=== tests/cases/compiler/prototypeInstantiatedWithBaseConstraint.ts ===
|
|
class C<T> {
|
|
>C : C<T>
|
|
>T : T
|
|
|
|
x: T;
|
|
>x : T
|
|
>T : T
|
|
}
|
|
|
|
C.prototype.x.boo; // No error, prototype is instantiated to any
|
|
>C.prototype.x.boo : any
|
|
>C.prototype.x : any
|
|
>C.prototype : C<any>
|
|
>C : typeof C
|
|
>prototype : C<any>
|
|
>x : any
|
|
>boo : any
|
|
|