Order dependent – switching the enum declarations makes it work. Probably related to some other existing issue(s), but I didn't find any exact one.
function main() {
var a:A = null;
a >> Bar; // Errors: should be Int
}
abstract A({}) {
@:op(A >> B) public function op(b:Foo):Void {}
}
enum Foo {
Bar;
}
enum Baz {
Bar;
}
Order dependent – switching the enum declarations makes it work. Probably related to some other existing issue(s), but I didn't find any exact one.