1
0
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:
joe-conigliaro 2020-06-30 04:37:07 +10:00
parent 3436ae99fc
commit 7565fe595b
No known key found for this signature in database
GPG Key ID: C12F7136C08206F1

View File

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