C#: Avoid overlap for () and System.ValueTuple in unification library

This commit is contained in:
Tom Hvitved
2021-12-10 10:26:33 +01:00
parent 7af9d75abc
commit 0c9ca4546c

View File

@@ -80,7 +80,8 @@ module Gvn {
LeafType() {
not this instanceof GenericType and
not this instanceof TypeParameter and
not this instanceof DynamicType
not this instanceof DynamicType and
not this instanceof TupleType
}
}
@@ -478,6 +479,8 @@ module Gvn {
GvnType getGlobalValueNumber(Type t) {
result = TLeafGvnType(t)
or
result = TLeafGvnType(t.(TupleType).getUnderlyingType())
or
t instanceof DynamicType and
result = TLeafGvnType(any(ObjectType ot))
or