Skip to content

Commit

Permalink
checker: more line-info logic
Browse files Browse the repository at this point in the history
  • Loading branch information
medvednikov committed Sep 10, 2023
1 parent b9a233b commit d3e950b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion vlib/os/file.c.v
Expand Up @@ -880,4 +880,3 @@ pub fn (f &File) tell() !i64 {
}
return pos
}

2 changes: 1 addition & 1 deletion vlib/v/checker/checker.v
Expand Up @@ -1624,7 +1624,7 @@ fn (mut c Checker) selector_expr(mut node ast.SelectorExpr) ast.Type {
return ast.int_type
}

c.error('`${unwrapped_sym.name}` 1has no property `${node.field_name}`', node.pos)
c.error('`${unwrapped_sym.name}` has no property `${node.field_name}`', node.pos)
}
} else {
if sym.info is ast.Struct {
Expand Down

0 comments on commit d3e950b

Please sign in to comment.