11 lines
No EOL
475 B
Text
11 lines
No EOL
475 B
Text
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 = '') {
|
|
}
|
|
} |