TypeScript/tests/baselines/reference/typeOfPrototype.types

20 lines
368 B
Text
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/typeOfPrototype.ts ===
class Foo {
>Foo : Foo
bar = 3;
>bar : number
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