implicit address-taking for array slices

This commit is contained in:
2026-06-23 18:44:59 +02:00
parent 18e2a96b76
commit c7e171c438
5 changed files with 102 additions and 6 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ main :: func() i32 {
item^ = item^ + 1
}
view []mut i32 = (&items)[..]
view []mut i32 = items[..]
for view |@item, index| {
item^ = item^ + 1
_ = index