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