20 lines
337 B
Plaintext
20 lines
337 B
Plaintext
=== 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
|
|
|