22 lines
No EOL
590 B
Text
22 lines
No EOL
590 B
Text
tests/cases/compiler/functionTypesLackingReturnTypes.ts(3,17): error TS1005: '=>' expected.
|
|
tests/cases/compiler/functionTypesLackingReturnTypes.ts(7,9): error TS2304: Cannot find name 'param'.
|
|
|
|
|
|
==== tests/cases/compiler/functionTypesLackingReturnTypes.ts (2 errors) ====
|
|
|
|
// Error (no '=>')
|
|
function f(x: ()) {
|
|
~
|
|
!!! error TS1005: '=>' expected.
|
|
}
|
|
|
|
// Error (no '=>')
|
|
var g: (param);
|
|
~~~~~
|
|
!!! error TS2304: Cannot find name 'param'.
|
|
|
|
// Okay
|
|
var h: { () }
|
|
|
|
// Okay
|
|
var i: { new () } |