From 7722866096824617d787484e3999fea98bc8b898 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Tue, 15 Dec 2020 00:30:32 +0100 Subject: [PATCH] :art: Make @Foreach non inferable --- src/lib/foreach.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/foreach.c b/src/lib/foreach.c index 37bac3df..6ca26469 100644 --- a/src/lib/foreach.c +++ b/src/lib/foreach.c @@ -30,7 +30,7 @@ OP_CHECK(opck_foreach_scan) { GWION_IMPORT(foreach) { const Type t_foreach = gwi_struct_ini(gwi, "@Foreach:[A]"); - set_tflag(t_foreach, tflag_ntmpl); + set_tflag(t_foreach, tflag_ntmpl | tflag_infer); GWI_BB(gwi_item_ini(gwi, "@internal", "val")) GWI_BB(gwi_item_end(gwi, ae_flag_none, NULL)) GWI_BB(gwi_struct_end(gwi)) -- 2.43.0