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
29 lines
501 B
Text
29 lines
501 B
Text
// Can construct an object through its base-class ctor
|
|
|
|
class A()
|
|
function A( this, arg0 )
|
|
this.arg0 := arg0;
|
|
print( $"A::A this={this} arg0={arg0}" );
|
|
endfunction
|
|
endclass
|
|
|
|
class B( A )
|
|
endclass
|
|
|
|
class C( A )
|
|
endclass
|
|
|
|
class D( C, B )
|
|
function D( this )
|
|
super( "argD" );
|
|
print( $"D::D this={this} this.arg0={this.arg0}" );
|
|
endfunction
|
|
endclass
|
|
|
|
var a := A( "argA" );
|
|
print( "----" );
|
|
var b := B( "argB" );
|
|
print( "----" );
|
|
var c := C( "argC" );
|
|
print( "----" );
|
|
var d := D();
|