11 lines
271 B
Plaintext
11 lines
271 B
Plaintext
|
==== tests/cases/compiler/staticsInConstructorBodies.ts (2 errors) ====
|
||
|
class C {
|
||
|
constructor() {
|
||
|
static p1 = 0; // ERROR
|
||
|
~~~~~~
|
||
|
!!! Statement expected.
|
||
|
static m1() {} // ERROR
|
||
|
}
|
||
|
}
|
||
|
~
|
||
|
!!! Declaration or statement expected.
|