16 lines
268 B
JavaScript
16 lines
268 B
JavaScript
//// [voidArrayLit.ts]
|
|
var va = [(() => {})()]; // ok
|
|
(() => {})(); // ok
|
|
function foo(s:string) {}
|
|
foo((()=>{})()); // error
|
|
|
|
|
|
//// [voidArrayLit.js]
|
|
var va = [(function () {
|
|
})()];// ok
|
|
(function () {
|
|
})();
|
|
function foo(s) {
|
|
}
|
|
foo((function () {
|
|
})());
|