polserver/testsuite/escript/classes/scopes-var-shadowing-modfunc.src
Kevin Eady 0fa1b893a0 Update core-changes, break-changes for classes support (#719)
* Format testsuite escript

* Format testsuite pol

* Update docs
Switch "attributes" to "members" to better align with Escript terms.

* Add core-changes, breaking-changes
2024-10-10 18:06:04 +02:00

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();