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

18 lines
No EOL
353 B
Text

==== tests/cases/compiler/functionTypesLackingReturnTypes.ts (2 errors) ====
// Error (no '=>')
function f(x: ()) {
~
!!! '=>' expected.
}
// Error (no '=>')
var g: (param);
~
!!! '=>' expected.
// Okay
var h: { () }
// Okay
var i: { new () }