TypeScript/tests/baselines/reference/voidArrayLit.errors.txt
2014-09-12 13:35:07 -07:00

11 lines
433 B
Plaintext

tests/cases/compiler/voidArrayLit.ts(4,5): error TS2345: Argument of type 'void' is not assignable to parameter of type 'string'.
==== tests/cases/compiler/voidArrayLit.ts (1 errors) ====
var va = [(() => {})()]; // ok
(() => {})(); // ok
function foo(s:string) {}
foo((()=>{})()); // error
~~~~~~~~~~
!!! error TS2345: Argument of type 'void' is not assignable to parameter of type 'string'.