浏览代码

Merge pull request #2370 from fabiansperber/parser_fix

Fix core:odin/parser #force_inline/force_no_inline call expression when it's a statement
gingerBill 2 年之前
父节点
当前提交
3748e117a9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/odin/parser/parser.odin

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

@@ -1425,7 +1425,7 @@ parse_stmt :: proc(p: ^Parser) -> ^ast.Stmt {
 			return es
 
 		case "force_inline", "force_no_inline":
-			expr := parse_inlining_operand(p, true, tok)
+			expr := parse_inlining_operand(p, true, tag)
 			es := ast.new(ast.Expr_Stmt, expr.pos, expr.end)
 			es.expr = expr
 			return es