TypeScript/tests/baselines/reference/typeOfPrototype.types

22 lines
746 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/typeOfPrototype.ts ===
class Foo {
2015-04-13 23:01:57 +02:00
>Foo : Foo, Symbol(Foo, Decl(typeOfPrototype.ts, 0, 0))
2014-08-15 23:33:16 +02:00
bar = 3;
2015-04-13 23:01:57 +02:00
>bar : number, Symbol(bar, Decl(typeOfPrototype.ts, 0, 11))
2015-04-13 21:36:11 +02:00
>3 : number
2014-08-15 23:33:16 +02:00
static bar = '';
2015-04-13 23:01:57 +02:00
>bar : string, Symbol(Foo.bar, Decl(typeOfPrototype.ts, 1, 12))
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
2015-04-13 23:01:57 +02:00
>Foo.prototype.bar : number, Symbol(Foo.bar, Decl(typeOfPrototype.ts, 0, 11))
>Foo.prototype : Foo, Symbol(Foo.prototype)
2015-04-13 23:01:57 +02:00
>Foo : typeof Foo, Symbol(Foo, Decl(typeOfPrototype.ts, 0, 0))
>prototype : Foo, Symbol(Foo.prototype)
2015-04-13 23:01:57 +02:00
>bar : number, Symbol(Foo.bar, Decl(typeOfPrototype.ts, 0, 11))
>undefined : undefined, Symbol(undefined)
2014-08-15 23:33:16 +02:00