polserver/testsuite/escript/classes/super-as-class-method-func.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

17 lines
265 B
Text

// A non-child class can define a super method function
class Foo()
function Foo( this )
endfunction
function super( this )
print( "Foo::super(this) called" );
endfunction
endclass
var obj := Foo();
Foo::super( obj );
print( "----" );
obj.super();