mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
* Format testsuite escript * Format testsuite pol * Update docs Switch "attributes" to "members" to better align with Escript terms. * Add core-changes, breaking-changes
23 lines
473 B
Text
23 lines
473 B
Text
// Testing assignment of global, class, and local variables.
|
|
|
|
var foo := "global before";
|
|
|
|
class Animal()
|
|
var foo := "class before";
|
|
// static function named as same as class
|
|
function Animal( foo )
|
|
print( foo );
|
|
print(::foo);
|
|
print( Animal::foo);
|
|
|
|
Animal::foo:= "class after";
|
|
foo := "param after";
|
|
::foo:= "global after";
|
|
|
|
print( foo );
|
|
print(::foo);
|
|
print( Animal::foo);
|
|
endfunction
|
|
endclass
|
|
|
|
Animal::Animal( "param before" );
|