7 lines
235 B
Text
7 lines
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.
|
||
|
}
|
||
|
}
|