remap generics when checking struct alias
This commit is contained in:
parent
4b99a99815
commit
9895e85ea6
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue