polserver/testsuite/escript/for/foreach20-over-function-reference-disallowed.src
Eric Swanson d8ad58f64f
Update test suite for new compiler (#299)
* Update test suite:
- run test suite with both OG compiler and new compiler
- run compiler parity test against testsuite/escript
2020-09-11 01:38:39 -07:00

8 lines
114 B
Text

function foo()
return { 7, 4, 2 };
endfunction
var f := @foo;
foreach a in f.call()
print(a);
endforeach