Skip to content

Commit 284a008

Browse files
committed
Adds PR review changes.
1 parent 2efa97c commit 284a008

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sway-core/src/language/ty/declaration/function.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,10 @@ impl DeclRefFunction {
166166
})
167167
.collect::<Vec<_>>();
168168
if !matches.is_empty() {
169+
// Adds type substitution for first match only as we can apply only one.
169170
type_id_type_subst_map
170171
.insert(impl_type_parameter.type_id, matches[0].0.type_id);
171-
}
172-
if engines
172+
} else if engines
173173
.te()
174174
.get(impl_self_or_trait.implementing_for.initial_type_id)
175175
.eq(

0 commit comments

Comments
 (0)