Add image computation of typesets; Remove TypeVar.singleton_type - instead derive singleton type from typeset; (#104)
This commit is contained in:
committed by
Jakob Stoklund Olesen
parent
9487b885da
commit
6a9438d274
@@ -321,8 +321,8 @@ def get_constraint(op, ctrl_typevar, type_sets):
|
||||
tv = op.typevar
|
||||
|
||||
# A concrete value type.
|
||||
if tv.singleton_type:
|
||||
return 'Concrete({})'.format(tv.singleton_type.rust_name())
|
||||
if tv.singleton_type():
|
||||
return 'Concrete({})'.format(tv.singleton_type().rust_name())
|
||||
|
||||
if tv.free_typevar() is not ctrl_typevar:
|
||||
assert not tv.is_derived
|
||||
|
||||
Reference in New Issue
Block a user