mirror of
https://github.com/github/codeql.git
synced 2026-04-25 08:45:14 +02:00
C#: Add test for missing accessors
This commit is contained in:
8
csharp/ql/test/library-tests/indexers/Indexers12.ql
Normal file
8
csharp/ql/test/library-tests/indexers/Indexers12.ql
Normal file
@@ -0,0 +1,8 @@
|
||||
import csharp
|
||||
|
||||
from Indexer i, Accessor a, string s
|
||||
where
|
||||
i.getDeclaringType().hasQualifiedName("System", s) and
|
||||
s.regexpMatch("Tuple<,*>") and
|
||||
a = i.getAnAccessor()
|
||||
select i.toStringWithTypes(), a.toStringWithTypes()
|
||||
Reference in New Issue
Block a user