mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
15 lines
238 B
Text
15 lines
238 B
Text
// Scope04 - make sure locals in sub-blocks can override other locals
|
|
//
|
|
var a array;
|
|
a[1] := 4;
|
|
a[2] := 5;
|
|
a[3] := 9;
|
|
|
|
function foo( a )
|
|
foreach i in (a)
|
|
print( "I=" + i );
|
|
break;
|
|
endforeach
|
|
endfunction
|
|
|
|
foo(a);
|