Files
codeql/csharp/ql/test/library-tests/expressions/Default2.ql
2018-12-20 10:19:59 +01:00

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