Pointer to array slicing yields a pointer to array type, not a slice type.
This commit is contained in:
parent
7602f34bb4
commit
406e400f0c
@ -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 => {},
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user