TypeScript/tests/baselines/reference/voidArrayLit.errors.txt
2014-09-11 16:11:08 -07:00

8 lines
298 B
Plaintext

==== 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'.