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
Main.hx:11: 42
Main.hx:12: true
[Fault] exception, information=ReferenceError: Error #1069: Property length not found on Number and there is no default value.
which suggests that this = new Vector<T>(size) in the abstract's constructor somehow compiles into this = size.
What's going on?
The text was updated successfully, but these errors were encountered:
Right, I forgot about the Flash part of #4783. I know that using Vector with type parameters like that causes problems, but that error is still really strange.
Ah right, it seems that Vector<KTypeParam> is compiled as Object by genSWF, which is normal for type safety (because the vectors are not compatible between them) but should throw an error when used with new because we don't know which vector class to construct.
try.haxe | code:
outputs
which suggests that
this = new Vector<T>(size)
in the abstract's constructor somehow compiles intothis = size
.What's going on?
The text was updated successfully, but these errors were encountered: