return type declaration does not support function types
thautwarm opened this issue · comments
Taine Zhao commented
The grammar:
op_or returns [((arg0:MExpr_t, arg1:MExpr_t) => MExpr_t) result]
: '||' { $result = ExprOr; }
Which caused such an error:
error(63): src/xxx.g4: unknown attribute reference 'result' in '$result = ExprOr;'