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
22 lines
621 B
Text
22 lines
621 B
Text
// Test varargs with base class?
|
|
|
|
class BaseClass1()
|
|
function BaseClass1( this, arg0, args ... )
|
|
print( $"BaseClass1::BaseClass1 this={this} arg0={arg0} args={args}" );
|
|
// print( $"BaseClass1::BaseClass1 this={this} arg0={arg0}" );
|
|
endfunction
|
|
endclass
|
|
|
|
class BaseClassNotVariadic()
|
|
function BaseClassNotVariadic( this, arg0, arg1 )
|
|
print( $"BaseClassNotVariadic::BaseClassNotVariadic this={this} arg0={arg0} arg1={arg1}" );
|
|
endfunction
|
|
endclass
|
|
|
|
class Foo5( BaseClass1, BaseClassNotVariadic )
|
|
function Foo5( this )
|
|
super( "bc.0", "bc1.0", "bc1.1", "nv0", "nv1" );
|
|
endfunction
|
|
endclass
|
|
|
|
Foo5();
|