Skip to content

Commit 4b7a6c5

Browse files
committed
C#: Let the params test look in reference assemblies and update params to allow ParamsCollectionType.
1 parent c8e72c0 commit 4b7a6c5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

csharp/ql/test/library-tests/methods/Parameters4.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
*/
44

55
import csharp
6+
import semmle.code.csharp.commons.Collections
67

7-
where forall(Parameter p | p.isParams() and p.fromSource() | p.getType() instanceof ArrayType)
8+
where forall(Parameter p | p.isParams() | p.getType() instanceof ParamsCollectionType)
89
select 1

0 commit comments

Comments
 (0)