Files
codeql/csharp/ql/test/library-tests/generics/Generics21.ql
2018-08-02 17:53:23 +01:00

16 lines
261 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