-Subproject commit f8d01d6c09933881a456182c57a384c826105b2e
+Subproject commit af63abc5d9f76ffcf128ee7784068a3a8283f5a8
#include "import/internals.h"
static inline Tmpl* gwi_tmpl(const Gwi gwi) {
- return new_tmpl(gwi->gwion->mp, gwi->ck->tmpl, -1);
+ return new_tmpl_base(gwi->gwion->mp, gwi->ck->tmpl);
}
#endif
struct ImportCK ck = { .name=name };
CHECK_BO(check_typename_def(gwi, &ck))
Type_Decl *td = str2decl(gwi, parent ?: "Object"); // check
- Tmpl* tmpl = ck.tmpl ? new_tmpl(gwi->gwion->mp, ck.tmpl, -1) : NULL;
+ Tmpl* tmpl = ck.tmpl ? new_tmpl_base(gwi->gwion->mp, ck.tmpl) : NULL;
if(tmpl)
template_push_types(gwi->gwion->env, tmpl);
const Type p = known_type(gwi->gwion->env, td); // check
inherit_tmpl(env, cdef);
set_template(t, cdef);
} else if(SAFE_FLAG(env->class_def, template)) {
- cdef->base.tmpl = new_tmpl(env->gwion->mp, env->class_def->e->def->base.tmpl->list, -1);
+ cdef->base.tmpl = new_tmpl_base(env->gwion->mp, env->class_def->e->def->base.tmpl->list);
set_template(t, cdef);
}
if(cdef->base.ext && cdef->base.ext->array)