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