8 lines
No EOL
445 B
Text
8 lines
No EOL
445 B
Text
tests/cases/compiler/defaultValueInFunctionOverload1.ts(1,14): error TS2371: A parameter initializer is only allowed in a function or constructor implementation.
|
|
|
|
|
|
==== tests/cases/compiler/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 = '') { } |