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

8 lines
291 B
Plaintext
Raw Normal View History

2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/defaultValueInConstructorOverload1.ts (1 errors) ====
class C {
constructor(x = '');
~~~~~~
!!! A parameter initializer is only allowed in a function or constructor implementation.
constructor(x = '') {
}
}