Skip to content

Commit 22ca258

Browse files
committedJan 23, 2025·
bugfix: auto-cast causing bad inferred types
1 parent 57bfcd5 commit 22ca258

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎core/operations.onyx

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ __for_expansion :: macro (_s: [] $T, $flags: __For_Expansion_Flags, $body: Code)
5959
defer i += 1
6060

6161
v := data[i]
62-
#unquote body(v, ~~i) #skip_scope(2)
62+
#unquote body(v, i) #skip_scope(2)
6363
}
6464
}
6565

@@ -74,7 +74,7 @@ __for_expansion :: macro (_s: [] $T, $flags: __For_Expansion_Flags, $body: Code)
7474
defer i += 1
7575

7676
v := &data[i]
77-
#unquote body(v, ~~i) #skip_scope(2)
77+
#unquote body(v, i) #skip_scope(2)
7878
}
7979
}
8080

0 commit comments

Comments
 (0)
Please sign in to comment.