TypeScript/tests/baselines/reference/defaultValueInFunctionOverload1.errors.txt
2014-09-11 16:11:08 -07:00

5 lines
278 B
Plaintext

==== 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 = '') { }