From: fennecdjay Date: Mon, 29 Jan 2024 23:16:05 +0000 (+0100) Subject: :art: use actual loc in dict.c X-Git-Tag: nightly~119 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=2af96045d3ee5d92d5fcf0d54b6538d4b7a74387;p=gwion.git :art: use actual loc in dict.c --- diff --git a/src/lib/dict.c b/src/lib/dict.c index 6875581e..bcce4b6a 100644 --- a/src/lib/dict.c +++ b/src/lib/dict.c @@ -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);