Pointer to array slicing yields a pointer to array type, not a slice type.

This commit is contained in:
Alexandros Naskos 2020-05-27 19:01:23 +03:00
parent 7602f34bb4
commit 406e400f0c

View File

@ -353,7 +353,7 @@ fn resolveBracketAccessType(
if (rhs == .Single) { if (rhs == .Single) {
return resolveTypeOfNode(analysis_ctx, child_pop.rhs); return resolveTypeOfNode(analysis_ctx, child_pop.rhs);
} }
return makeSliceType(analysis_ctx, child_pop.rhs); return lhs;
}, },
else => {}, else => {},
} }