checker: remove unnecessary exits
parent
72f80461de
commit
e459e6d24a
|
@ -195,7 +195,6 @@ pub fn (c mut Checker) check_method_call_expr(method_call_expr ast.MethodCallExp
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
c.error('type `$typ_sym.name` has no method `$method_call_expr.name`', method_call_expr.pos)
|
c.error('type `$typ_sym.name` has no method `$method_call_expr.name`', method_call_expr.pos)
|
||||||
exit(1)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn (c mut Checker) selector_expr(selector_expr ast.SelectorExpr) table.Type {
|
pub fn (c mut Checker) selector_expr(selector_expr ast.SelectorExpr) table.Type {
|
||||||
|
@ -222,7 +221,6 @@ pub fn (c mut Checker) selector_expr(selector_expr ast.SelectorExpr) table.Type
|
||||||
else {
|
else {
|
||||||
c.error('unknown field `${typ_sym.name}.$field_name`', selector_expr.pos)
|
c.error('unknown field `${typ_sym.name}.$field_name`', selector_expr.pos)
|
||||||
}
|
}
|
||||||
exit(0)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: non deferred
|
// TODO: non deferred
|
||||||
|
|
Loading…
Reference in New Issue