Skip to content

Commit

Permalink
C#: Let the params test look in reference assemblies and update param…
Browse files Browse the repository at this point in the history
…s to allow ParamsCollectionType.
  • Loading branch information
michaelnebel committed Dec 20, 2024
1 parent 7330a95 commit f4539f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion csharp/ql/test/library-tests/methods/Parameters4.ql
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
*/

import csharp
import semmle.code.csharp.commons.Collections

where forall(Parameter p | p.isParams() and p.fromSource() | p.getType() instanceof ArrayType)
where forall(Parameter p | p.isParams() | p.getType() instanceof ParamsCollectionType)
select 1

0 comments on commit f4539f7

Please sign in to comment.