1
0
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:
StunxFS 2022-08-12 10:25:52 -04:00 committed by GitHub
parent 9f2651717a
commit 657389446b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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