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

14 lines
270 B
Plaintext

/**
* @name Test for methods
*/
import csharp
from Class c, Method m
where
c.hasName("TestOverloading") and
m.getDeclaringType() = c and
m.hasName("F") and
m.getParameter(0).getType() instanceof ObjectType
select c, m, m.getParameter(0).getType().toString()