tests/cases/compiler/functionTypesLackingReturnTypes.ts(3,17): error TS1005: '=>' expected.
tests/cases/compiler/functionTypesLackingReturnTypes.ts(7,15): error TS1005: '=>' expected.


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