1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

checker: remove debug code from previous commit

This commit is contained in:
Joe Conigliaro 2022-04-08 18:27:14 +10:00
parent 426e9d1734
commit a0c07454b1
No known key found for this signature in database
GPG Key ID: C12F7136C08206F1

View File

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