Skip to content

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

@neimanpinchas

Description

@neimanpinchas

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions