15 lines
502 B
Plaintext
15 lines
502 B
Plaintext
tests/cases/compiler/staticsInConstructorBodies.ts(3,3): error TS1129: Statement expected.
|
|
tests/cases/compiler/staticsInConstructorBodies.ts(6,1): error TS1128: Declaration or statement expected.
|
|
|
|
|
|
==== tests/cases/compiler/staticsInConstructorBodies.ts (2 errors) ====
|
|
class C {
|
|
constructor() {
|
|
static p1 = 0; // ERROR
|
|
~~~~~~
|
|
!!! error TS1129: Statement expected.
|
|
static m1() {} // ERROR
|
|
}
|
|
}
|
|
~
|
|
!!! error TS1128: Declaration or statement expected. |