mirror of
https://github.com/github/codeql.git
synced 2026-03-23 07:56:54 +01:00
11 lines
218 B
Plaintext
11 lines
218 B
Plaintext
/**
|
|
* @name Test for generics
|
|
*/
|
|
import csharp
|
|
|
|
from UnboundGenericDelegateType d
|
|
where d.hasName("GenericDelegate<>")
|
|
and d.getTypeParameter(0).hasName("T")
|
|
and d.getParameter(0).getType().hasName("T")
|
|
select d
|