8 lines
305 B
Plaintext
8 lines
305 B
Plaintext
==== 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 = '') {
|
|
}
|
|
} |