Skip to content

Commit 44dfafc

Browse files
committed
C#: remove 'System.Enum' from enums in QL
1 parent 6b3010e commit 44dfafc

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

csharp/ql/src/semmle/code/cil/Type.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class Type extends DotNet::Type, Declaration, TypeContainer, @cil_type {
7979
}
8080

8181
/** Holds if this type is an `enum`. */
82-
predicate isEnum() { this.getBaseClass*().isSystemType("Enum") }
82+
predicate isEnum() { this.getBaseClass().isSystemType("Enum") }
8383

8484
/** Holds if this type is public. */
8585
predicate isPublic() { cil_public(this) }

csharp/ql/test/library-tests/cil/enums/enums.expected

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@
6363
| System.Diagnostics.Tracing.EventTask | int |
6464
| System.Diagnostics.Tracing.ManifestEnvelope.ManifestFormats | byte |
6565
| System.Diagnostics.Tracing.TraceLoggingDataType | int |
66-
| System.Enum | int |
6766
| System.Environment.SpecialFolder | int |
6867
| System.Environment.SpecialFolderOption | int |
6968
| System.EnvironmentVariableTarget | int |

0 commit comments

Comments
 (0)