polserver/testsuite/escript/scope/scope08-function-arg-same-level-var-conflict.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
No EOL
204 B
Text

// Scope08 - a variable with the same name as a function argument
// cannot be declared at the top level of the function block.
function foo(bar)
var bar; // expect compile error
endfunction
foo(4);