Fixed array payload type resolution

This commit is contained in:
Alexandros Naskos 2020-06-11 01:09:28 +03:00
parent 7650decfa0
commit 323b05856e

View File

@ -994,10 +994,10 @@ pub const DeclWithHandle = struct {
.array_payload => |pay| try resolveBracketAccessType(
store,
arena,
.{
(try resolveTypeOfNode(store, arena, .{
.node = pay.array_expr,
.handle = self.handle,
},
})) orelse return null,
.Single,
),
// TODO Resolve switch payload types