TypeScript/tests/baselines/reference/prototypeInstantiatedWithBaseConstraint.types
2014-08-15 14:37:48 -07:00

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