From: fennecdjay Date: Tue, 20 Dec 2022 11:15:22 +0000 (+0100) Subject: :bug: disallow unresolved partials X-Git-Tag: nightly~207^2~31 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=ed38f68ca43d0bcd71fdd3aa57083da12ed50b6b;p=gwion.git :bug: disallow unresolved partials --- 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 =