diff --git a/vlib/v/checker/checker.v b/vlib/v/checker/checker.v index 8de7c2d87a..7a20eaa0ac 100644 --- a/vlib/v/checker/checker.v +++ b/vlib/v/checker/checker.v @@ -134,7 +134,7 @@ pub fn (c &Checker) selector_expr(selector_expr ast.SelectorExpr) table.Type { return field.ti } else { - c.error('$ti.name is not a struct', selector_expr.pos) + c.error('`$typ.name` is not a struct', selector_expr.pos) } } return table.void_type