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
15 lines
273 B
Text
15 lines
273 B
Text
// Variables can shadow user functions
|
|
|
|
class Animal()
|
|
var print := "foo";
|
|
|
|
function Test()
|
|
::print( Print + "bar" );
|
|
endfunction
|
|
endclass
|
|
|
|
// Global scope can access the var
|
|
print( Animal::Print);
|
|
|
|
// Test that a function inside class can access
|
|
Animal::test();
|