ANN static inline m_bool cond_type(const Env env, const Exp e) {
const Type t_int = env->gwion->type[et_int];
- return check_implicit(env, e, t_int);
+ if(check_implicit(env, e, t_int))
+ ERR_B(e->pos, _("invalid condition type"))
+ return GW_OK;
}
#define stmt_func_xxx(name, type, prolog, exp) describe_stmt_func(check, name, type, prolog, exp)
class C {
typedef void ptr_t(int i);
-\a { <<< this, " ", a >>>; } @=>
-ptr_t ptr;
+\a { <<< this, " ", a >>>; } @=> ptr_t ptr;
#!ptr(3);
fun void t1(int i) { <<< this, " t1 ", i >>>; }
fun void test(ptr_t ptr) {