stage2: Array len field should be a usize not comptime_int

This commit is contained in:
Mitchell Hashimoto
2022-03-11 09:36:57 -08:00
committed by Andrew Kelley
parent 79b169c5a5
commit 797f4db227
2 changed files with 4 additions and 3 deletions

View File

@@ -104,6 +104,7 @@ test "array len field" {
comptime try expect(arr.len == 4);
try expect(ptr.len == 4);
comptime try expect(ptr.len == 4);
try expect(@TypeOf(arr.len) == usize);
}
test "array with sentinels" {