fix [a,b]+↩1

This commit is contained in:
dzaima 2022-06-14 02:33:41 +03:00
parent 3b82419202
commit f3fffd2b8d

View File

@ -581,6 +581,9 @@ NOINLINE B v_getF(Scope* pscs[], B s) {
if (r.u==bi_noVar.u) thrM("↩: Reading variable that hasn't been set");
sc->ext->vars[(u32)s.u] = bi_optOut;
return r;
} else if (isObj(s)) {
assert(v(s)->type == t_arrMerge);
return bqn_merge(v_getF(pscs, c(WrappedObj,s)->obj));
} else {
VTY(s, t_harr);
usz ia = a(s)->ia;