Ver Fonte

Merge pull request #3019 from DanielGavin/parser-fix

Fixed crash in `core:odin/parser` with `#reverse`
gingerBill há 1 ano atrás
pai
commit
2e9298891e
1 ficheiros alterados com 1 adições e 1 exclusões
  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":