mirror of
https://github.com/github/codeql.git
synced 2026-03-24 00:16:49 +01:00
14 lines
292 B
Plaintext
14 lines
292 B
Plaintext
/**
|
|
* @name Test for default value expressions
|
|
*/
|
|
import csharp
|
|
|
|
from Method m, DefaultValueExpr e, TypeParameter t
|
|
where m.hasName("PrintTypes")
|
|
and e.getEnclosingCallable() = m
|
|
and e.getType() = e.getTypeAccess().getTarget()
|
|
and e.getType() = t
|
|
and t.hasName("T")
|
|
select m, e, t
|
|
|