Sema: allow .ptr on pointer to array
This commit is contained in:
@@ -709,7 +709,7 @@ test "pointer to array has ptr field" {
|
||||
try std.testing.expect(arr.ptr[1] == 20);
|
||||
try std.testing.expect(arr.ptr[2] == 30);
|
||||
try std.testing.expect(arr.ptr[3] == 40);
|
||||
try std.testing.expect(arr.ptr[4] == 50);
|
||||
try std.testing.expect((&arr.ptr).*[4] == 50);
|
||||
}
|
||||
|
||||
test "discarded array init preserves result location" {
|
||||
|
||||
Reference in New Issue
Block a user