From ed38f68ca43d0bcd71fdd3aa57083da12ed50b6b Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Tue, 20 Dec 2022 12:15:22 +0100 Subject: [PATCH] :bug: disallow unresolved partials --- src/emit/emit.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/emit/emit.c b/src/emit/emit.c index 03239079..7838adcd 100644 --- a/src/emit/emit.c +++ b/src/emit/emit.c @@ -1120,6 +1120,8 @@ ANN static m_bool emit_decl(const Emitter emit, Exp_Decl *const decl) { ANN /*static */ m_bool emit_exp_decl(const Emitter emit, Exp_Decl *const decl) { const Type t = decl->type; + if(decl->args && !strncmp(decl->args->type->name, "partial:", 8)) + ERR_B(decl->args->pos, "unresolved partial"); CHECK_BB(ensure_emit(emit, t)); const m_bool global = GET_FLAG(decl->td, global); const m_uint scope = -- 2.43.0