mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
18 lines
283 B
Plaintext
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
|