aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/switch.zig
diff options
context:
space:
mode:
authorAli Cheraghi <alichraghi@proton.me>2025-04-30 18:42:23 +0330
committerMatthew Lugg <mlugg@mlugg.co.uk>2025-11-22 22:42:38 +0000
commitdec1163fbb892f276179ae74b51007c656157d99 (patch)
tree7efa4ebe2ffb6876ffd6de0f417303232f559d87 /test/behavior/switch.zig
parentce0df033cf2bb6986c6c226786e6543d05e29a77 (diff)
downloadzig-dec1163fbb892f276179ae74b51007c656157d99.tar.gz
zig-dec1163fbb892f276179ae74b51007c656157d99.zip
all: replace all `@Type` usages
Co-authored-by: Matthew Lugg <mlugg@mlugg.co.uk>
Diffstat (limited to 'test/behavior/switch.zig')
-rw-r--r--test/behavior/switch.zig6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/behavior/switch.zig b/test/behavior/switch.zig
index 170e8d9778..d184bbc47d 100644
--- a/test/behavior/switch.zig
+++ b/test/behavior/switch.zig
@@ -843,7 +843,8 @@ test "switch capture peer type resolution for in-memory coercible payloads" {
if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest;
const T1 = c_int;
- const T2 = @Type(@typeInfo(T1));
+ const t1_info = @typeInfo(T1).int;
+ const T2 = @Int(t1_info.signedness, t1_info.bits);
comptime assert(T1 != T2);
@@ -865,7 +866,8 @@ test "switch pointer capture peer type resolution" {
if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest;
const T1 = c_int;
- const T2 = @Type(@typeInfo(T1));
+ const t1_info = @typeInfo(T1).int;
+ const T2 = @Int(t1_info.signedness, t1_info.bits);
comptime assert(T1 != T2);