Skip to content

Commit

Permalink
fix(experimental elaborator): Clear generics after elaborating type a…
Browse files Browse the repository at this point in the history
…liases (#5136)

# Description

## Problem\*

## Summary\*

Adds a missed call to `generics.clear()`

## Additional Context



## Documentation\*

Check one:
- [x] No documentation needed.
- [ ] Documentation included in this PR.
- [ ] **[For Experimental Features]** Documentation to be submitted in a
separate PR.

# PR Checklist\*

- [x] I have tested the changes locally.
- [x] I have formatted the changes with [Prettier](https://prettier.io/)
and/or `cargo fmt` on default settings.
  • Loading branch information
jfecher authored May 29, 2024
1 parent 3afe023 commit b0a7d0b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/noirc_frontend/src/elaborator/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1147,6 +1147,7 @@ impl<'context> Elaborator<'context> {
self.current_item = Some(DependencyId::Alias(alias_id));
let typ = self.resolve_type(alias.type_alias_def.typ);
self.interner.set_type_alias(alias_id, typ, generics);
self.generics.clear();
}

fn collect_struct_definitions(&mut self, structs: BTreeMap<StructId, UnresolvedStruct>) {
Expand Down

0 comments on commit b0a7d0b

Please sign in to comment.