You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just came across this as well and got very confused about the Too many arguments error. The problem is that this is supposed to use a static extension from NativeArrayTools, but eval's implementation has its own toArray which then takes priority.
I also don't quite understand where the inference problem comes from and why it only affects eval. Will check this tomorrow.
I think this has to be worked around here by manually doing NativeArrayTools.toArray(mData, 0, size, []);. The ArrayTools.alloc calls should be type-hinted as var out:Array<T> = ArrayTools.alloc(size);. I'm still not sure why this is target-dependent, but inference can easily go wrong if the Array element type is left open.
I'd send a PR, but I'm getting murdered by whitespace changes...
Gama11
added a commit
to Gama11/ds
that referenced
this issue
Nov 3, 2020
Tested with Haxe 4.0.5 and polygonal-ds 2.1.1.
The text was updated successfully, but these errors were encountered: