Skip to content

Commit a0f2f2e

Browse files
committed
Do not consider aliased types as generic parameters.
1 parent c37dc92 commit a0f2f2e

File tree

1 file changed

+1
-7
lines changed
  • sway-core/src/type_system

1 file changed

+1
-7
lines changed

sway-core/src/type_system/id.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -208,13 +208,7 @@ impl TypeId {
208208
},
209209
TypeInfo::Struct(decl_ref),
210210
) => call_path.call_path.suffix != decl_engine.get_struct(decl_ref).call_path.suffix,
211-
(
212-
TypeInfo::Custom {
213-
qualified_call_path: call_path,
214-
..
215-
},
216-
TypeInfo::Alias { name, .. },
217-
) => call_path.call_path.suffix != name.clone(),
211+
(TypeInfo::Custom { .. }, TypeInfo::Alias { .. }) => false,
218212
(TypeInfo::Custom { .. }, _) => true,
219213
_ => false,
220214
}

0 commit comments

Comments
 (0)