We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
()
System.ValueTuple
1 parent 7af9d75 commit 0c9ca45Copy full SHA for 0c9ca45
1 file changed
csharp/ql/lib/semmle/code/csharp/Unification.qll
@@ -80,7 +80,8 @@ module Gvn {
80
LeafType() {
81
not this instanceof GenericType and
82
not this instanceof TypeParameter and
83
- not this instanceof DynamicType
+ not this instanceof DynamicType and
84
+ not this instanceof TupleType
85
}
86
87
@@ -478,6 +479,8 @@ module Gvn {
478
479
GvnType getGlobalValueNumber(Type t) {
480
result = TLeafGvnType(t)
481
or
482
+ result = TLeafGvnType(t.(TupleType).getUnderlyingType())
483
+ or
484
t instanceof DynamicType and
485
result = TLeafGvnType(any(ObjectType ot))
486
0 commit comments