mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
builder: generic struct fix - derive field type
This commit is contained in:
@@ -19,7 +19,7 @@ pub fn (b &Builder) instantiate_generic_structs() {
|
|||||||
}
|
}
|
||||||
for j, gp in parent_info.generic_types {
|
for j, gp in parent_info.generic_types {
|
||||||
if gp == field.typ {
|
if gp == field.typ {
|
||||||
field.typ = info.generic_types[j]
|
field.typ = info.generic_types[j].derive(field.typ).clear_flag(.generic)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user