mirror of
https://github.com/github/codeql.git
synced 2026-03-06 07:36:47 +01:00
14 lines
318 B
Plaintext
14 lines
318 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
|