polserver/testsuite/escript/classes/fail-super-unconstructable.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

17 lines
342 B
Text

// Cannot use `super()` because BaseClass uses uncloneable default
// parameter, _even if_ a value is given at the call site.
class BaseClass()
function BaseClass( this, arg0 := array{ 1, 2, 3 } )
endfunction
endclass
///////////
class Foo( BaseClass )
function Foo( this )
super( "value given" );
endfunction
endclass
Foo();