diag: preserve envelope fields and reject JSON key collisions in tests
This commit is contained in:
1 parent
8ee0f4c2bf
commit
364eb57bbc
16 files changed
+166
-12
No files matched your search
@@ -1165,7 +1165,7 @@ fn checkInst(fc: *FnCtx, inst: air.Inst) !void {
|
||||
// an attempt to widen (spec 05 §10.4).
|
||||
if (!air.authority.hasForm(t.cap, x.form)) try fc.c.report("E3202", span, "narrowing form not defined for this capability kind", &.{
|
||||
.{ .name = "function", .value = .{ .str = f.name } },
|
||||
.{ .name = "kind", .value = .{ .str = air.authority.kinds[t.cap].name } },
|
||||
.{ .name = "capability_kind", .value = .{ .str = air.authority.kinds[t.cap].name } },
|
||||
.{ .name = "form", .value = .{ .str = x.form } },
|
||||
});
|
||||
if (std.mem.eql(u8, x.form, "budget")) {
|
||||
|
||||
Reference in new issue
Block a user