SomeRanDev / reflaxe.CPP

An alternative C++ target for Haxe that generates dependent-less, GC-less C++17 code.
MIT License
72 stars 5 forks source link

Wrong inherited method parameters #15

Closed fourst4r closed 1 year ago

fourst4r commented 1 year ago

Building this code

class Base {
    public function new() {}

    function overridden(a:String) {}
    function dummy(optional:Int=null) {}
}

class Child extends Base {
    override function overridden(a:String) {}
}

function main() {
    new Child();
}

Generates a wrong signature for Child.overridden:

void Child::overridden(std::optional<std::string> a)
SomeRanDev commented 1 year ago

Ooo, this is a weird one. I'll check it out now!

SomeRanDev commented 1 year ago

Haha, turned out to be Reflaxe issue! Should be fixed now if you update your haxelibs.