We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2efa97c commit 284a008Copy full SHA for 284a008
sway-core/src/language/ty/declaration/function.rs
@@ -166,10 +166,10 @@ impl DeclRefFunction {
166
})
167
.collect::<Vec<_>>();
168
if !matches.is_empty() {
169
+ // Adds type substitution for first match only as we can apply only one.
170
type_id_type_subst_map
171
.insert(impl_type_parameter.type_id, matches[0].0.type_id);
- }
172
- if engines
+ } else if engines
173
.te()
174
.get(impl_self_or_trait.implementing_for.initial_type_id)
175
.eq(
0 commit comments