Skip to content

Commit 5b58adc

Browse files
committed
Fixes alias multiple applicable items error.
1 parent 9a2c809 commit 5b58adc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sway-core/src/semantic_analysis/namespace/trait_map.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -669,6 +669,7 @@ impl TraitMap {
669669
type_id: TypeId,
670670
code_block_first_pass: CodeBlockFirstPass,
671671
) {
672+
let type_id = engines.te().get_unaliased_type_id(type_id);
672673
let root_filter = TraitMap::get_type_filter(engines, type_id);
673674
if let Some(values) = self.insert_for_type_cache.get_mut(&root_filter) {
674675
let unify_checker = UnifyCheck::non_dynamic_equality(engines).with_unify_ref_mut(false);

0 commit comments

Comments
 (0)