reflaxe
reflaxe copied to clipboard
How to get the infered type parameters for a function call.
Golang is less flexiable when it comes to infer generic type params, one noticable diffrence is that the assignee is not taken into account. https://stackoverflow.com/questions/72174526/is-it-possible-to-infer-type-parameters-from-what-return-values-are-assigned-to.
I see in reflaxe.cpp some code but I am unable to follow, also I am not sure whether the meta is explicitly added. https://github.com/SomeRanDev/reflaxe.CPP/blob/main/src/cxxcompiler/subcompilers/Expressions.hx#L1479
How is possible to extract the concrete type that haxe infered for the generic call?
I also suspect the @:generic doesnt work yet from reflaxe.