TypeScript/tests/baselines/reference/typeOfPrototype.types

22 lines
395 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/typeOfPrototype.ts ===
class Foo {
>Foo : Foo
2014-08-15 23:33:16 +02:00
bar = 3;
>bar : number
2015-04-13 21:36:11 +02:00
>3 : number
2014-08-15 23:33:16 +02:00
static bar = '';
>bar : string
2015-04-13 21:36:11 +02:00
>'' : string
2014-08-15 23:33:16 +02:00
}
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
2014-08-15 23:33:16 +02:00