TypeScript/tests/baselines/reference/invalidStaticField.errors.txt
2014-09-11 16:11:08 -07:00

5 lines
256 B
Plaintext

==== tests/cases/compiler/invalidStaticField.ts (1 errors) ====
class A { foo() { return B.NULL; } }
~~~~
!!! error TS2339: Property 'NULL' does not exist on type 'typeof B'.
class B { static NOT_NULL = new B(); }