mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
11 lines
235 B
Text
11 lines
235 B
Text
// Make sure locals in sub-blocks can override other locals
|
|
program foo()
|
|
var a := 5;
|
|
print( "1. A=" + a );
|
|
if (2)
|
|
var a;
|
|
a := 7;
|
|
print( "2. A=" + a );
|
|
endif
|
|
print( "3. A=" + a );
|
|
endprogram
|