haxe
haxe copied to clipboard
forwarded abstract fields are not available through a constrained type parameter
@:forward(forwarded)
abstract A({function forwarded():Void;}) {
public function defined() {}
}
function f<TA:A>(v:TA) {
v.defined(); // works
v.forwarded(); // doesn't work
}
(this is not a regression)
also, forwarded shows up in the completion :)