We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2edfa15 commit d7d653bCopy full SHA for d7d653b
1 file changed
csharp/ql/src/Stubs/Stubs.qll
@@ -429,13 +429,16 @@ private string stubClassName(Type t) {
429
else
430
if t instanceof TupleType
431
then
432
- result =
433
- "(" +
434
- concat(int i, Type element |
435
- element = t.(TupleType).getElementType(i)
436
- |
437
- stubClassName(element), "," order by i
438
- ) + ")"
+ if t.(TupleType).getArity() < 2
+ then result = stubClassName(t.(TupleType).getUnderlyingType())
+ else
+ result =
+ "(" +
+ concat(int i, Type element |
+ element = t.(TupleType).getElementType(i)
439
+ |
440
+ stubClassName(element), "," order by i
441
+ ) + ")"
442
443
if t instanceof ValueOrRefType
444
0 commit comments