mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
19 lines
250 B
Text
19 lines
250 B
Text
use basic;
|
|
|
|
var a;
|
|
|
|
A := 5;
|
|
print( "A="+A);
|
|
|
|
// A should not change here.
|
|
// NOTE, a compiler warning should be generated.
|
|
A == "HELLO";
|
|
print( "A="+A);
|
|
|
|
A := A + 654;
|
|
print( "A="+A);
|
|
|
|
var b:=A;
|
|
A+=1; // b should not change
|
|
print(a);
|
|
print(b);
|