mirror of
https://github.com/github/codeql.git
synced 2026-03-06 07:36:47 +01:00
13 lines
241 B
Plaintext
13 lines
241 B
Plaintext
/**
|
|
* @name Test for generics
|
|
*/
|
|
|
|
import csharp
|
|
|
|
from ConstructedDelegateType d
|
|
where
|
|
d.hasName("GenericDelegate<String>") and
|
|
d.getTypeArgument(0) instanceof StringType and
|
|
d.getParameter(0).getType() instanceof StringType
|
|
select d
|