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)
tdef->tmpl = new_tmpl(gwi->gwion->mp, gwi->ck->tmpl, -1);
+ tdef->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);
--- /dev/null
+#include "gwion_util.h"
+#include "gwion_ast.h"
+#include "oo.h"
+#include "vm.h"
+#include "env.h"
+#include "type.h"
+#include "object.h"
+#include "instr.h"
+#include "gwion.h"
+#include "value.h"
+#include "operator.h"
+#include "import.h"
+
+GWION_IMPORT(typedef_test) {
+ GWI_BB(gwi_typedef_ini(gwi, "int", "Typedef<~A~>"))
+ GWI_BB(gwi_typedef_ini(gwi, "int", "Typedef<~A~>"))
+ return GW_OK;
+}
#include "import.h"
GWION_IMPORT(typedef_test) {
- GWI_OB(gwi_typedef_ini(gwi, "int", "<~A~>Typedef"))
- GWI_OB(gwi_typedef_end(gwi, ae_flag_none))
+ GWI_BB(gwi_typedef_ini(gwi, "int", "Typedef<~A~>"))
+ GWI_BB(gwi_typedef_end(gwi, ae_flag_none))
return GW_OK;
}
#!/bin/bash
-# [test] #61
+# [test] #62
n=0
[ "$1" ] && n="$1"