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
20 lines
373 B
Text
20 lines
373 B
Text
// This used to be a bug
|
|
|
|
var super := @( i ) {
|
|
print( $"funcexpr called i={i}" );
|
|
};
|
|
|
|
class Foo()
|
|
function Foo( this, i )
|
|
// Execute super as a global variable: var exists: ok
|
|
::super( i );
|
|
|
|
// Execute function found in local scope: ok
|
|
super( this, i - 1 );
|
|
|
|
// No global function found
|
|
@super( this, i - 1 );
|
|
endfunction
|
|
endclass
|
|
|
|
Foo( 0 );
|