Type_Decl *td = gwi->ck->td;
td->flag |= flag;
const Type_Def tdef = new_type_def(gwi->gwion->mp, td, gwi->ck->sym);
- gwi->ck->td = NULL;
- if(td->types)
+ if(gwi->ck->tmpl)
tdef->tmpl = new_tmpl(gwi->gwion->mp, gwi->ck->tmpl, -1);
- tdef->tmpl = NULL;
+ gwi->ck->td = NULL;
+ gwi->ck->tmpl = NULL;
const m_bool ret = traverse_type_def(gwi->gwion->env, tdef);
const Type t = tdef->type;
free_type_def(gwi->gwion->mp, tdef);
#include "import.h"
GWION_IMPORT(typedef_test) {
- GWI_BB(gwi_typedef_ini(gwi, "int", "Typedef<~A~>"))
+ GWI_BB(gwi_typedef_ini(gwi, "Ptr<~A~>", "Typedef<~A~>"))
GWI_BB(gwi_typedef_end(gwi, ae_flag_none))
return GW_OK;
}