I have maybe found a bug, or a behavior I can’t explain.
When I’m using Array.map, unification of my type parameters of my array fails with optional fields.
Here is a small chunk of code that reproduce the behavior. The first assignment fails, the second one passes but both shows the same result with $type.
What can I do to fix that ? Is that a bug related to Haxe itself ?