11 lines
475 B
Plaintext
11 lines
475 B
Plaintext
tests/cases/compiler/defaultValueInConstructorOverload1.ts(2,17): error TS2371: A parameter initializer is only allowed in a function or constructor implementation.
|
|
|
|
|
|
==== tests/cases/compiler/defaultValueInConstructorOverload1.ts (1 errors) ====
|
|
class C {
|
|
constructor(x = '');
|
|
~~~~~~
|
|
!!! error TS2371: A parameter initializer is only allowed in a function or constructor implementation.
|
|
constructor(x = '') {
|
|
}
|
|
} |