TypeScript/tests/baselines/reference/typeOfPrototype.types
2016-09-01 14:25:44 -07:00

22 lines
386 B
Plaintext

=== tests/cases/compiler/typeOfPrototype.ts ===
class Foo {
>Foo : Foo
bar = 3;
>bar : number
>3 : 3
static bar = '';
>bar : string
>'' : ""
}
Foo.prototype.bar = undefined; // Should be OK
>Foo.prototype.bar = undefined : undefined
>Foo.prototype.bar : number
>Foo.prototype : Foo
>Foo : typeof Foo
>prototype : Foo
>bar : number
>undefined : undefined