Skip to content

Commit cca4ab2

Browse files
committed
Do not consider aliased types as generic parameters.
1 parent 97efa22 commit cca4ab2

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
@@ -284,13 +284,7 @@ impl TypeId {
284284
},
285285
TypeInfo::Struct(decl_ref),
286286
) => call_path.call_path.suffix != decl_engine.get_struct(decl_ref).call_path.suffix,
287-
(
288-
TypeInfo::Custom {
289-
qualified_call_path: call_path,
290-
..
291-
},
292-
TypeInfo::Alias { name, .. },
293-
) => call_path.call_path.suffix != name.clone(),
287+
(TypeInfo::Custom { .. }, TypeInfo::Alias { .. }) => false,
294288
(TypeInfo::Custom { .. }, _) => true,
295289
_ => false,
296290
}

0 commit comments

Comments
 (0)