mirror of
https://github.com/vlang/v.git
synced 2025-09-09 15:27:05 -04:00
v2: fix typo in checker.v (#20697)
This commit is contained in:
parent
382d7658cd
commit
673a2f4e66
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user