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

15 lines
283 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