mirror of
https://github.com/github/codeql.git
synced 2026-03-06 07:36:47 +01:00
15 lines
393 B
Plaintext
15 lines
393 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
|