mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02: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
|
|
|