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