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