Commit 0939f205 authored by Mark Florisson's avatar Mark Florisson

Disallow use of unspecialized fused types

parent 5061256f
...@@ -585,6 +585,11 @@ class ExprNode(Node): ...@@ -585,6 +585,11 @@ class ExprNode(Node):
if dst_type.is_reference: if dst_type.is_reference:
dst_type = dst_type.ref_base_type dst_type = dst_type.ref_base_type
if src_type.is_fused or dst_type.is_fused:
error(self.pos, "Type is not specific")
self.type = error_type
return self
if dst_type.is_pyobject: if dst_type.is_pyobject:
if not src.type.is_pyobject: if not src.type.is_pyobject:
if dst_type is bytes_type and src.type.is_int: if dst_type is bytes_type and src.type.is_int:
......
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