16 lines
No EOL
353 B
Text
16 lines
No EOL
353 B
Text
==== tests/cases/compiler/typeofClass.ts (2 errors) ====
|
|
class K {
|
|
foo: number;
|
|
static bar: string;
|
|
}
|
|
|
|
var k1: K;
|
|
k1.foo;
|
|
k1.bar;
|
|
~~~
|
|
!!! Property 'bar' does not exist on type 'K'.
|
|
var k2: typeof K;
|
|
k2.foo;
|
|
~~~
|
|
!!! Property 'foo' does not exist on type 'typeof K'.
|
|
k2.bar; |