mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
checker: fix typo (#15397)
This commit is contained in:
parent
9f2651717a
commit
657389446b
|
@ -140,7 +140,7 @@ pub fn (mut c Checker) check_types(got ast.Type, expected ast.Type) bool {
|
|||
&& expected.has_flag(.optional))
|
||||
|| ((sym.idx == ast.error_type_idx || got == ast.error_type)
|
||||
&& expected.has_flag(.result)) {
|
||||
// IErorr
|
||||
// IError
|
||||
return true
|
||||
} else if !c.check_basic(got, expected.clear_flag(.optional).clear_flag(.result)) {
|
||||
return false
|
||||
|
|
Loading…
Reference in New Issue
Block a user