1
0
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:
Delyan Angelov 2021-05-11 11:02:28 +03:00
parent d3de91ee86
commit 263e1ee4a4
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

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