From ce1d0951bdf4d83060d9fa691091d6059ad9f6d3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Mon, 13 Apr 2020 18:40:08 +0200 Subject: [PATCH] :bomb: Unamed union must be unique --- src/parse/scan0.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/parse/scan0.c b/src/parse/scan0.c index ce12253b..2481ff82 100644 --- a/src/parse/scan0.c +++ b/src/parse/scan0.c @@ -281,6 +281,7 @@ ANN m_bool scan0_union_def(const Env env, const Union_Def udef) { SET_FLAG(udef->type, checked); } else { const Symbol sym = scan0_sym(env, "union", udef->pos); + CHECK_BB(scan0_defined(env, sym, udef->pos)) const Type t = union_type(env, sym, 1); udef->value = union_value(env, t, sym); udef->value->flag |= udef->flag; -- 2.43.0