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

8 lines
455 B
Plaintext
Raw Normal View History

tests/cases/compiler/defaultValueInFunctionTypes.ts(1,9): error TS2371: A parameter initializer is only allowed in a function or constructor implementation.
2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/defaultValueInFunctionTypes.ts (1 errors) ====
var x: (a: number = 1) => number;
~~~~~~~~~~~~~
!!! error TS2371: A parameter initializer is only allowed in a function or constructor implementation.
2014-07-13 01:04:16 +02:00
var y = <(a : string = "") => any>(undefined)