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
265 B
Text
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();
|