mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
ci: fix compilation of cmd/tools/vtest-cleancode.v
This commit is contained in:
parent
d3de91ee86
commit
263e1ee4a4
@ -1113,6 +1113,9 @@ pub fn (mut t Table) resolve_generic_to_concrete(generic_type Type, generic_name
|
||||
mut sym := t.get_type_symbol(generic_type)
|
||||
if sym.name in generic_names {
|
||||
index := generic_names.index(sym.name)
|
||||
if index >= concrete_types.len {
|
||||
return none
|
||||
}
|
||||
typ := concrete_types[index]
|
||||
return typ.derive(generic_type).clear_flag(.generic)
|
||||
} else if sym.kind == .array {
|
||||
|
Loading…
Reference in New Issue
Block a user