reflaxe icon indicating copy to clipboard operation
reflaxe copied to clipboard

How to get the infered type parameters for a function call.

Open neimanpinchas opened this issue 11 months ago • 4 comments

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.

neimanpinchas avatar Dec 11 '24 22:12 neimanpinchas