TypeScript/tests/baselines/reference/typeOfPrototype.types
2015-04-13 14:29:37 -07:00

22 lines
746 B
Plaintext

=== tests/cases/compiler/typeOfPrototype.ts ===
class Foo {
>Foo : Foo, Symbol(Foo, Decl(typeOfPrototype.ts, 0, 0))
bar = 3;
>bar : number, Symbol(bar, Decl(typeOfPrototype.ts, 0, 11))
>3 : number
static bar = '';
>bar : string, Symbol(Foo.bar, Decl(typeOfPrototype.ts, 1, 12))
>'' : string
}
Foo.prototype.bar = undefined; // Should be OK
>Foo.prototype.bar = undefined : undefined
>Foo.prototype.bar : number, Symbol(Foo.bar, Decl(typeOfPrototype.ts, 0, 11))
>Foo.prototype : Foo, Symbol(Foo.prototype)
>Foo : typeof Foo, Symbol(Foo, Decl(typeOfPrototype.ts, 0, 0))
>prototype : Foo, Symbol(Foo.prototype)
>bar : number, Symbol(Foo.bar, Decl(typeOfPrototype.ts, 0, 11))
>undefined : undefined, Symbol(undefined)