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
30 lines
726 B
Text
30 lines
726 B
Text
// Test varargs with base class?
|
|
|
|
class BaseClass1()
|
|
function BaseClass1( this, arg0 := "bc1.0", args ... )
|
|
print( $"BaseClass1::BaseClass1 this={this} arg0={arg0} args={args}" );
|
|
// print( $"BaseClass1::BaseClass1 this={this} arg0={arg0}" );
|
|
endfunction
|
|
endclass
|
|
|
|
class BaseClass2()
|
|
function BaseClass2( this, arg0 := "bc2.0", args ... )
|
|
print( $"BaseClass2::BaseClass2 this={this} arg0={arg0} args={args}" );
|
|
endfunction
|
|
endclass
|
|
|
|
class BaseClass3()
|
|
function BaseClass3( this, args ... )
|
|
print( $"BaseClass3::BaseClass3 this={this} args={args}" );
|
|
endfunction
|
|
endclass
|
|
|
|
///////////
|
|
|
|
class Foo( BaseClass1, BaseClass2, BaseClass3 )
|
|
function Foo( this )
|
|
super();
|
|
endfunction
|
|
endclass
|
|
|
|
Foo();
|