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

15 lines
502 B
Plaintext
Raw Normal View History

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