-
-
Notifications
You must be signed in to change notification settings - Fork 688
Open
Labels
Milestone
Description
class Main {
static function main() {
var c = new Child();
toArray(c.method([7, 8, 9]));
}
//removing `inline` here fixes it
static public inline function toArray(a:Array<Int>):Array<Int>
return a.copy();
//or adding `inline` here, or changing `Array<T>` to `Array<Int>`
static public function append<T>(a:Array<T>):Array<T> {
return a;
}
}
class Parent {
public function new() {}
public function method(a:Array<Int>):Array<Int> {
return a;
}
}
class Child extends Parent {
override public function method(a:Array<Int>):Array<Int> {
// or removing `super.method` call here
return super.method(Main.append(a));
}
}
$ haxe -main Main --cppia test.cppia && haxelib run hxcpp test.cppia
Error : hxSehException
Reproducible with all Haxe versions.