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

11 lines
271 B
Plaintext
Raw Normal View History

2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/staticsInConstructorBodies.ts (2 errors) ====
class C {
constructor() {
static p1 = 0; // ERROR
~~~~~~
!!! Statement expected.
static m1() {} // ERROR
}
}
~
!!! Declaration or statement expected.