if(unlikely(!is_func(emit->gwion, t))) {
const Type t = actual_type(emit->gwion, call->func->type);
- struct Op_Import opi = {.op = insert_symbol("@ctor"),
+ struct Op_Import opi = {.op = insert_symbol("call_type"),
.rhs = t,
.data = (uintptr_t)call,
.pos = exp_self(call)->pos};
gwidoc(gwi, "internal constructor operator.");
GWI_BB(gwi_oper_ini(gwi, NULL, (m_str)OP_ANY_TYPE, NULL))
GWI_BB(gwi_oper_add(gwi, opck_basic_ctor))
- GWI_BB(gwi_oper_end(gwi, "@ctor", NULL))
+ GWI_BB(gwi_oper_end(gwi, "call_type", NULL))
/*
gwidoc(gwi, "Allow enum for array size");
GWI_BB(gwi_oper_ini(gwi, "Class", "int", NULL))
const Value v = nspc_lookup_value0(t->info->base_type->nspc, insert_symbol("new"));
if(v) return exp->func->type = v->type;
}
- struct Op_Import opi = {.op = insert_symbol("@ctor"),
+ struct Op_Import opi = {.op = insert_symbol("call_type"),
.rhs = actual_type(env->gwion, exp->func->type),
.data = (uintptr_t)exp,
.pos = exp_self(exp)->pos};