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

22 lines
590 B
Plaintext
Raw Normal View History

tests/cases/compiler/functionTypesLackingReturnTypes.ts(3,17): error TS1005: '=>' expected.
2014-10-17 22:46:41 +02:00
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);
2014-10-17 22:46:41 +02:00
~~~~~
!!! error TS2304: Cannot find name 'param'.
// Okay
var h: { () }
// Okay
var i: { new () }