Open romamik opened 4 years ago
I agree we should improve @:remove
documentation.
I don't have any opinion on @:generic abstract
atm, but an abstract over Map
won't be supported until @:multiType abstract
feature is reworked or replaced with something better.
This code does not compile with error
I always thought that this is because underlying type selection occurs before type parameter application. But this is not the case, because I've just discovered that
@:remove
metadata makes this example compile. So now I'm confused, why it does not just work with@:generic
only. Also this is not documented in any way, I've only found this mentioned here: https://github.com/HaxeFoundation/haxe/issues/2537Also it does not help with abstracts. It actually looks like abstracts cannot be generic at all...