Files
codeql/csharp/ql/test/library-tests/expressions/Default2.ql
2018-08-02 17:53:23 +01:00

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