From 406e400f0c03003ede0d3ec3f9447b92b4ebdedd Mon Sep 17 00:00:00 2001 From: Alexandros Naskos Date: Wed, 27 May 2020 19:01:23 +0300 Subject: [PATCH] Pointer to array slicing yields a pointer to array type, not a slice type. --- src/analysis.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/analysis.zig b/src/analysis.zig index 134bca6..73b1fc5 100644 --- a/src/analysis.zig +++ b/src/analysis.zig @@ -353,7 +353,7 @@ fn resolveBracketAccessType( if (rhs == .Single) { return resolveTypeOfNode(analysis_ctx, child_pop.rhs); } - return makeSliceType(analysis_ctx, child_pop.rhs); + return lhs; }, else => {}, }