mirror of
https://github.com/github/codeql.git
synced 2026-03-22 23:49:43 +01:00
13 lines
390 B
Plaintext
13 lines
390 B
Plaintext
/**
|
|
* @name Test for generics
|
|
*/
|
|
import csharp
|
|
|
|
from ConstructedClass bString, Method m
|
|
where bString.hasName("B<String>")
|
|
and m.getDeclaringType() = bString
|
|
and m.hasName("fooParams")
|
|
and m.getParameter(0).getType().(ArrayType).getElementType() instanceof StringType
|
|
and m.getSourceDeclaration().getDeclaringType() = m.getDeclaringType().getSourceDeclaration()
|
|
select bString, m
|