polserver/testsuite/escript/scope/scope06-program-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

6 lines
192 B
Text

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