浏览代码

Merge pull request #3019 from DanielGavin/parser-fix

Fixed crash in `core:odin/parser` with `#reverse`
gingerBill 1 年之前
父节点
当前提交
2e9298891e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/odin/parser/parser.odin

+ 1 - 1
core/odin/parser/parser.odin

@@ -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":