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

18 lines
283 B
Plaintext

import csharp
/*
* This tests a regression in the extractor where the following failed to extract:
*
* class Foo<T>
* {
* enum E { a };
* }
*/
from Enum e, Class c
where
c.hasName("Param<>") and
e.hasName("E") and
e.getDeclaringType() = c
select c, e