TypeScript/tests/baselines/reference/typeOfPrototype.types

21 lines
728 B
Text

=== 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)