Skip to content

Commit

Permalink
Merge pull request #339 from IsaiahPaget/master
Browse files Browse the repository at this point in the history
Fix for no type inference in for range loops
  • Loading branch information
DanielGavin authored Apr 7, 2024
2 parents 34dc649 + 1ccd0be commit fcd6128
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/analysis.odin
Original file line number Diff line number Diff line change
Expand Up @@ -3185,8 +3185,8 @@ get_locals_for_range_stmt :: proc(
) {
using ast

if !(stmt.body.pos.offset <= document_position.position &&
document_position.position <= stmt.body.end.offset) {
if !(stmt.pos.offset <= document_position.position &&
document_position.position <= stmt.end.offset) {
return
}

Expand Down

0 comments on commit fcd6128

Please sign in to comment.