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

11 lines
433 B
Plaintext
Raw Normal View History

tests/cases/compiler/voidArrayLit.ts(4,5): error TS2345: Argument of type 'void' is not assignable to parameter of type 'string'.
2014-07-13 01:04:16 +02:00
==== 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'.
2014-07-13 01:04:16 +02:00