We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42fcfad commit f597c9aCopy full SHA for f597c9a
csharp/ql/src/Stubs/Stubs.qll
@@ -534,7 +534,11 @@ private string stubConstraints(TypeParameterConstraints tpc, int i) {
534
or
535
tpc.hasUnmanagedTypeConstraint() and result = "unmanaged" and i = 0
536
537
- tpc.hasValueTypeConstraint() and result = "struct" and i = 0
+ tpc.hasValueTypeConstraint() and
538
+ result = "struct" and
539
+ i = 0 and
540
+ not tpc.hasUnmanagedTypeConstraint() and
541
+ not stubClassName(tpc.getATypeConstraint().(Class)) = "System.Enum"
542
543
tpc.hasRefTypeConstraint() and result = "class" and i = 0
544
0 commit comments