stage2: Array len field should be a usize not comptime_int
This commit is contained in:
committed by
Andrew Kelley
parent
79b169c5a5
commit
797f4db227
@@ -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" {
|
||||
|
||||
Reference in New Issue
Block a user