mirror of
https://github.com/github/codeql.git
synced 2026-03-22 23:49:43 +01: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())
|