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

13 lines
280 B
Plaintext

/**
* @name Test for generics
*/
import csharp
from ConstructedClass c, UnboundGenericClass d
where c.hasName("A<X>")
and d.hasName("A<>")
and c.getTypeArgument(0).hasName("X")
and c.getTypeArgument(0) instanceof TypeParameter
and c.getUnboundGeneric() = d
select c, d