21 lines
395 B
Text
21 lines
395 B
Text
=== tests/cases/compiler/typeOfPrototype.ts ===
|
|
class Foo {
|
|
>Foo : Foo
|
|
|
|
bar = 3;
|
|
>bar : number
|
|
>3 : number
|
|
|
|
static bar = '';
|
|
>bar : string
|
|
>'' : string
|
|
}
|
|
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
|
|
|