TypeScript/tests/baselines/reference/parameterPropertyOutsideConstructor.errors.txt

7 lines
235 B
Plaintext
Raw Normal View History

2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/parameterPropertyOutsideConstructor.ts (1 errors) ====
class C {
foo(public x) {
~~~~~~~~
!!! A parameter property is only allowed in a constructor implementation.
}
}