Sema: take dbg_stmt into account in zirResolveInferredAlloc

This commit is contained in:
Veikka Tuominen
2022-05-31 16:21:36 +03:00
parent 83beed09e1
commit febc7d3cd6
2 changed files with 11 additions and 1 deletions

View File

@@ -977,3 +977,13 @@ test "weird array and tuple initializations" {
.b = if (a) .{ .e = .a } else .{ .e = .b },
};
}
test "array type comes from generic function" {
const S = struct {
fn A() type {
return struct { a: u8 = 0 };
}
};
const args = [_]S.A(){.{}};
_ = args;
}