checker: more line-info logic

This commit is contained in:
Alexander Medvednikov 2023-09-11 01:40:34 +03:00
parent b9a233b1a0
commit d3e950b3a9
2 changed files with 1 additions and 2 deletions

View File

@ -880,4 +880,3 @@ pub fn (f &File) tell() !i64 {
}
return pos
}

View File

@ -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 {