From 0626ac29015e462226fcb88b44c07505fc79c6b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20D=C3=A4schle?= Date: Sat, 4 Jul 2020 18:52:40 +0200 Subject: [PATCH] checker: fix position of infix expr error --- vlib/v/checker/checker.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/v/checker/checker.v b/vlib/v/checker/checker.v index 53d41e54c2..e3b4cb6953 100644 --- a/vlib/v/checker/checker.v +++ b/vlib/v/checker/checker.v @@ -606,7 +606,7 @@ pub fn (mut c Checker) infix_expr(mut infix_expr ast.InfixExpr) table.Type { } if left.kind != .interface_ && left.kind != .sum_type { c.error('`$infix_expr.op.str()` can only be used with interfaces and sum types', - type_expr.pos) + infix_expr.pos) } return table.bool_type }