5 lines
No EOL
279 B
Text
5 lines
No EOL
279 B
Text
==== 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) |