builder: generic struct fix - derive field type

pull/5573/head
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
1 changed files with 1 additions and 1 deletions

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