From a0c07454b1f128ace2e6fd5a38bb82f2b254909e Mon Sep 17 00:00:00 2001 From: Joe Conigliaro Date: Fri, 8 Apr 2022 18:27:14 +1000 Subject: [PATCH] checker: remove debug code from previous commit --- 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 2687a3d858..4a1716f917 100644 --- a/vlib/v/checker/checker.v +++ b/vlib/v/checker/checker.v @@ -3115,7 +3115,7 @@ pub fn (mut c Checker) ident(mut node ast.Ident) ast.Type { node.pos.pos } if node_pos < obj.pos.pos { - c.error('undefined variable `$node.name` (used before declaration) # $node_pos < $obj.pos.pos | $node.pos.pos', + c.error('undefined variable `$node.name` (used before declaration)', node.pos) } is_sum_type_cast := obj.smartcasts.len != 0