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
17 lines
404 B
Text
17 lines
404 B
Text
// Animal::StaticFunc refers to itself without scope. It should prefer its own definition over ::StaticFunc.
|
|
|
|
class Animal()
|
|
function StaticFunc( foo )
|
|
if ( foo )
|
|
print( $"Animal::StaticFunc foo={foo}" );
|
|
StaticFunc( foo - 1 );
|
|
endif
|
|
endfunction
|
|
endclass
|
|
|
|
function StaticFunc( foo )
|
|
print( $"::StaticFunc foo={foo}" );
|
|
endfunction
|
|
|
|
Animal::StaticFunc( 3 );
|
|
StaticFunc( "bar" );
|