TypeScript/tests/baselines/reference/defaultValueInFunctionTypes.errors.txt
2014-07-12 17:30:19 -07:00

5 lines
279 B
Plaintext

==== tests/cases/compiler/defaultValueInFunctionTypes.ts (1 errors) ====
var x: (a: number = 1) => number;
~~~~~~~~~~~~~
!!! A parameter initializer is only allowed in a function or constructor implementation.
var y = <(a : string = "") => any>(undefined)