TypeScript/tests/baselines/reference/defaultValueInFunctionOverload1.errors.txt

5 lines
264 B
Plaintext
Raw Normal View History

2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/defaultValueInFunctionOverload1.ts (1 errors) ====
function foo(x: string = '');
~~~~~~~~~~~~~~
!!! A parameter initializer is only allowed in a function or constructor implementation.
function foo(x = '') { }