polserver/testsuite/escript/classes/doc-sample-07.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

21 lines
368 B
Text

class A()
function A( this )
Print( "A constructor" );
endfunction
endclass
class B()
function B( this )
Print( "B constructor" );
endfunction
endclass
class C( A, B )
function C( this )
@B::B( this );
@A::A( this );
Print( "C constructor" );
endfunction
endclass
var c := C(); // Output: B constructor, A constructor, C constructor