mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-08 19:44:20 +00:00
Merge pull request #3019 from DanielGavin/parser-fix
Fixed crash in `core:odin/parser` with `#reverse`
This commit is contained in:
@@ -1438,7 +1438,7 @@ parse_stmt :: proc(p: ^Parser) -> ^ast.Stmt {
|
||||
}
|
||||
range.reverse = true
|
||||
} else {
|
||||
error(p, range.pos, "#reverse can only be applied to a 'for in' statement")
|
||||
error(p, stmt.pos, "#reverse can only be applied to a 'for in' statement")
|
||||
}
|
||||
return stmt
|
||||
case "include":
|
||||
|
||||
Reference in New Issue
Block a user