v2: fix typo in checker.v (#20697)

This commit is contained in:
Ikko Eltociear Ashimine 2024-01-31 19:56:43 +09:00 committed by GitHub
parent 382d7658cd
commit 673a2f4e66
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1590,7 +1590,7 @@ fn (mut c Checker) infer_generic_type(param_type Type, arg_type Type, mut type_m
if existing := type_map[name] {
// TODO: might need custom eq methods
if existing != typ && typ !is NamedType {
return error('${name} was previouly used as ${existing.name()}, got ${typ.name()}')
return error('${name} was previously used as ${existing.name()}, got ${typ.name()}')
}
}
type_map[name] = typ