Skip to content

Commit

Permalink
Fixes alias multiple applicable items error.
Browse files Browse the repository at this point in the history
  • Loading branch information
esdrubal committed Nov 26, 2024
1 parent 9a2c809 commit 5b58adc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sway-core/src/semantic_analysis/namespace/trait_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,7 @@ impl TraitMap {
type_id: TypeId,
code_block_first_pass: CodeBlockFirstPass,
) {
let type_id = engines.te().get_unaliased_type_id(type_id);
let root_filter = TraitMap::get_type_filter(engines, type_id);
if let Some(values) = self.insert_for_type_cache.get_mut(&root_filter) {
let unify_checker = UnifyCheck::non_dynamic_equality(engines).with_unify_ref_mut(false);
Expand Down

0 comments on commit 5b58adc

Please sign in to comment.