1
0
Fork 0
mirror of synced 2025-09-24 04:40:05 +00:00

remap generics when checking struct alias

This commit is contained in:
schaeff 2021-09-23 16:49:20 +03:00
parent 4b99a99815
commit 9895e85ea6

View file

@ -1547,7 +1547,11 @@ impl<'ast, T: Field> Checker<'ast, T> {
// we only remap the generics
DeclarationType::Struct(declared_struct_ty) => {
DeclarationType::Struct(DeclarationStructType {
generics: checked_generics,
generics: declared_struct_ty
.generics
.into_iter()
.map(|g| g.map(|g| g.map(&assignment).unwrap()))
.collect(),
..declared_struct_ty
})
}