Commit 8d073443 authored by Stefan Behnel's avatar Stefan Behnel

prevent in-place type list modification

parent 6fa55268
...@@ -3019,7 +3019,7 @@ def get_specialized_types(type): ...@@ -3019,7 +3019,7 @@ def get_specialized_types(type):
assert type.is_fused assert type.is_fused
if isinstance(type, FusedType): if isinstance(type, FusedType):
result = type.types result = list(type.types)
for specialized_type in result: for specialized_type in result:
specialized_type.specialization_string = specialized_type.typeof_name() specialized_type.specialization_string = specialized_type.typeof_name()
else: else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment