7 lines
235 B
Plaintext
7 lines
235 B
Plaintext
==== tests/cases/compiler/parameterPropertyOutsideConstructor.ts (1 errors) ====
|
|
class C {
|
|
foo(public x) {
|
|
~~~~~~~~
|
|
!!! A parameter property is only allowed in a constructor implementation.
|
|
}
|
|
} |