value: handle slices in canMutateComptimeVarState
This commit is contained in:
@@ -2080,7 +2080,6 @@ fn testReadIntImpl() !void {
|
||||
}
|
||||
|
||||
test "writeIntSlice" {
|
||||
if (@import("builtin").zig_backend != .stage1) return error.SkipZigTest; // TODO
|
||||
try testWriteIntImpl();
|
||||
comptime try testWriteIntImpl();
|
||||
}
|
||||
|
||||
@@ -2414,6 +2414,7 @@ pub const Value = extern union {
|
||||
return false;
|
||||
},
|
||||
.@"union" => return val.cast(Payload.Union).?.data.val.canMutateComptimeVarState(),
|
||||
.slice => return val.castTag(.slice).?.data.ptr.canMutateComptimeVarState(),
|
||||
else => return false,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user