mirror of
https://github.com/github/codeql.git
synced 2026-03-05 23:26:51 +01:00
15 lines
283 B
Plaintext
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
|