]> Nishi Git Mirror - gwion.git/commitdiff
:art: Make @Foreach non inferable
authorJérémie Astor <fennecdjay@gmail.com>
Mon, 14 Dec 2020 23:30:32 +0000 (00:30 +0100)
committerJérémie Astor <fennecdjay@gmail.com>
Mon, 14 Dec 2020 23:30:32 +0000 (00:30 +0100)
src/lib/foreach.c

index 37bac3df8c1033812aa8c639f466856d98616e30..6ca26469178fad73642c3b9456c2418afe9519cd 100644 (file)
@@ -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))