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:
parent
3436ae99fc
commit
7565fe595b
@ -19,7 +19,7 @@ pub fn (b &Builder) instantiate_generic_structs() {
|
||||
}
|
||||
for j, gp in parent_info.generic_types {
|
||||
if gp == field.typ {
|
||||
field.typ = info.generic_types[j]
|
||||
field.typ = info.generic_types[j].derive(field.typ).clear_flag(.generic)
|
||||
break
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user