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

12 lines
315 B
Plaintext

/**
* @name Test for generics
*/
import csharp
from ConstructedClass bString, Operator o
where bString.hasName("B<String>")
and o.getDeclaringType() = bString
and o instanceof IncrementOperator
and o.getSourceDeclaration().getDeclaringType() = o.getDeclaringType().getSourceDeclaration()
select bString, o