mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
15 lines
294 B
Plaintext
15 lines
294 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
|