mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +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
|