class Base extends godot.Node {
override function _ready() {}
}
class Child extends Base {
override function _ready() {}
}
generates the following error:
/haxe/lib/hxgodot/git/src/godot/macros/Macros.hx:782: lines 782-784 : Duplicate class field declaration : stc.Child.virtual_Child__ready
src/stc/Test.hx:21: lines 21-23 : ... Defined in this class
This also happens with custom functions, but only if the base class inherits a godot class, and if the inheritance hierarchy is at least 3 deep:
class Base extends godot.Node {
function custom() {}
}
// works
class Child extends Base {
override function custom() {}
}
// doesn't
class Child2 extends Child {
override function custom() {}
}
reported by @erpfi on Discord:
generates the following error:
This also happens with custom functions, but only if the base class inherits a godot class, and if the inheritance hierarchy is at least 3 deep: