Skip to content

Commit e6a97ad

Browse files
committed
Do not consider aliased types as generic parameters.
1 parent c7ff312 commit e6a97ad

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
@@ -228,13 +228,7 @@ impl TypeId {
228228
},
229229
TypeInfo::Struct(decl_ref),
230230
) => call_path.call_path.suffix != decl_engine.get_struct(decl_ref).call_path.suffix,
231-
(
232-
TypeInfo::Custom {
233-
qualified_call_path: call_path,
234-
..
235-
},
236-
TypeInfo::Alias { name, .. },
237-
) => call_path.call_path.suffix != name.clone(),
231+
(TypeInfo::Custom { .. }, TypeInfo::Alias { .. }) => false,
238232
(TypeInfo::Custom { .. }, _) => true,
239233
_ => false,
240234
}

0 commit comments

Comments
 (0)