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