Closed nadako closed 3 years ago
I don't know if non-static @:to
methods on @:multiType
abstracts should even be allowed. This is a bit of a mess due to the special semantics these abstracts have.
I'll take a closer look, but my tentative recommendation is to work around this problem and not rely on @:multiType
.
I've put in a fix for your example. Not super confident about it, so let me know if there are any problems. I would still love to just get rid of @:multiType
and handle this properly, but that's a discussion for another day.
This has been addressed, so I'll close until somebody complains.
The following fails with
src/Main.hx:13: lines 13-15 : (this : I<C.T>) -> C.T should be (I<Unknown<0>>, Unknown<1>) -> Unknown<2>
. Looks like the usual@:to
conversion methods don't work for@:multiType
abstracts.