mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
11 lines
433 B
Plaintext
11 lines
433 B
Plaintext
defaultValueInConstructorOverload1.ts(2,17): error TS2371: A parameter initializer is only allowed in a function or constructor implementation.
|
|
|
|
|
|
==== defaultValueInConstructorOverload1.ts (1 errors) ====
|
|
class C {
|
|
constructor(x = '');
|
|
~~~~~~
|
|
!!! error TS2371: A parameter initializer is only allowed in a function or constructor implementation.
|
|
constructor(x = '') {
|
|
}
|
|
} |