]> Nishi Git Mirror - gwion.git/commitdiff
:art: use actual loc in dict.c
authorfennecdjay <fennecdjay@gmail.com>
Mon, 29 Jan 2024 23:16:05 +0000 (00:16 +0100)
committerfennecdjay <fennecdjay@gmail.com>
Mon, 29 Jan 2024 23:16:05 +0000 (00:16 +0100)
src/lib/dict.c

index 6875581e9482cc5ba0365849908d1c1ba040777e..bcce4b6a9dde1fb3ea867687942437b4d719bb15 100644 (file)
@@ -567,7 +567,7 @@ static OP_CHECK(opck_dict_scan) {
   if(tflag(key, tflag_ref) || tflag(val, tflag_ref))
     ERR_N(ts->td->tag.loc, "can't use Ref:[] in dicts");
   const Class_Def cdef  = cpy_class_def(env->gwion->mp, env->gwion->type[et_dict]->info->cdef);
-  cdef->base.ext        = type2td(env->gwion, env->gwion->type[et_dict], (loc_t){});
+  cdef->base.ext        = type2td(env->gwion, env->gwion->type[et_dict], ts->td->tag.loc);
   cdef->base.tag.sym    = info.name;
   cdef->base.tmpl->call = cpy_type_list(env->gwion->mp, info.td->types);