18 lines
609 B
Text
18 lines
609 B
Text
=== tests/cases/compiler/typeOfPrototype.ts ===
|
|
class Foo {
|
|
>Foo : Symbol(Foo, Decl(typeOfPrototype.ts, 0, 0))
|
|
|
|
bar = 3;
|
|
>bar : Symbol(Foo.bar, Decl(typeOfPrototype.ts, 0, 11))
|
|
|
|
static bar = '';
|
|
>bar : Symbol(Foo.bar, Decl(typeOfPrototype.ts, 1, 12))
|
|
}
|
|
Foo.prototype.bar = undefined; // Should be OK
|
|
>Foo.prototype.bar : Symbol(Foo.bar, Decl(typeOfPrototype.ts, 0, 11))
|
|
>Foo.prototype : Symbol(Foo.prototype)
|
|
>Foo : Symbol(Foo, Decl(typeOfPrototype.ts, 0, 0))
|
|
>prototype : Symbol(Foo.prototype)
|
|
>bar : Symbol(Foo.bar, Decl(typeOfPrototype.ts, 0, 11))
|
|
>undefined : Symbol(undefined)
|
|
|