polserver/testsuite/escript/classes/fail-global-func-undefined.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

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