From f4539f7b610ed3a20e9c79d1d3a9d967d5d70b70 Mon Sep 17 00:00:00 2001 From: Michael Nebel Date: Fri, 20 Dec 2024 09:06:52 +0100 Subject: [PATCH] C#: Let the params test look in reference assemblies and update params to allow ParamsCollectionType. --- csharp/ql/test/library-tests/methods/Parameters4.ql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/csharp/ql/test/library-tests/methods/Parameters4.ql b/csharp/ql/test/library-tests/methods/Parameters4.ql index 832f6c1ea37e..11044ef95279 100644 --- a/csharp/ql/test/library-tests/methods/Parameters4.ql +++ b/csharp/ql/test/library-tests/methods/Parameters4.ql @@ -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