mirror of
https://github.com/github/codeql.git
synced 2026-03-01 05:13:41 +01:00
13 lines
280 B
Plaintext
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
|