2014-09-12 23:51:16 +02:00
|
|
|
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'.
|
2014-09-12 23:51:16 +02:00
|
|
|
|
|
|
|
|
2014-09-12 00:48:24 +02:00
|
|
|
==== tests/cases/compiler/functionTypesLackingReturnTypes.ts (2 errors) ====
|
|
|
|
|
|
|
|
// Error (no '=>')
|
|
|
|
function f(x: ()) {
|
|
|
|
~
|
2014-09-12 23:51:16 +02:00
|
|
|
!!! error TS1005: '=>' expected.
|
2014-09-12 00:48:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// Error (no '=>')
|
|
|
|
var g: (param);
|
2014-10-17 22:46:41 +02:00
|
|
|
~~~~~
|
|
|
|
!!! error TS2304: Cannot find name 'param'.
|
2014-09-12 00:48:24 +02:00
|
|
|
|
|
|
|
// Okay
|
|
|
|
var h: { () }
|
|
|
|
|
|
|
|
// Okay
|
|
|
|
var i: { new () }
|