Files
codeql/csharp/ql/test/library-tests/enums/Enums9.ql
2018-12-20 10:19:59 +01:00

16 lines
313 B
Plaintext

/**
* @name Test for enums
*/
import csharp
from EnumConstant c
where
c.getName() = "Green" and
c.getDeclaringType().hasQualifiedName("Enums.SparseColor") and
c.getType() = c.getDeclaringType() and
c.getValue() = "10" and
c.getUnderlyingType() instanceof IntType and
c.hasExplicitValue()
select c