Skip to content

Commit 57bfcd5

Browse files
committed
bugfix: unrespected type hint for index variable
1 parent 7ef6f27 commit 57bfcd5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

core/operations.onyx

Lines changed: 2 additions & 3 deletions
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,10 +74,9 @@ __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
}
80-
//
8180

8281
#overload
8382
__for_expansion :: macro (_r: range, $flags: __For_Expansion_Flags, $body: Code) where (body.capture_count == 1) {

0 commit comments

Comments
 (0)