mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
11 lines
318 B
Plaintext
11 lines
318 B
Plaintext
/**
|
|
* @name Test for generic parameter types
|
|
*/
|
|
import csharp
|
|
|
|
from Class c, Method m
|
|
where c.getName().matches("A<%")
|
|
and m = c.getAMethod()
|
|
select c, m, m.getAParameter() as p, count(m.(ConstructedMethod).getATypeArgument()),
|
|
p.getType().getName(), count(m.getAParameter()), count(m.getAParameter().getType())
|