TypeScript/tests/baselines/reference/invalidStaticField.errors.txt

8 lines
376 B
Plaintext
Raw Normal View History

tests/cases/compiler/invalidStaticField.ts(1,28): error TS2339: Property 'NULL' does not exist on type 'typeof B'.
2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/invalidStaticField.ts (1 errors) ====
class A { foo() { return B.NULL; } }
~~~~
!!! error TS2339: Property 'NULL' does not exist on type 'typeof B'.
2014-07-13 01:04:16 +02:00
class B { static NOT_NULL = new B(); }