From d13835e2cccd2a19bc83177ebe3a9ac569d15105 Mon Sep 17 00:00:00 2001 From: Daniel Grunwald Date: Fri, 1 Aug 2025 16:18:53 +0200 Subject: [PATCH] Add test for "params scoped Span'. --- .../TestCases/Pretty/ParamsCollections.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ICSharpCode.Decompiler.Tests/TestCases/Pretty/ParamsCollections.cs b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/ParamsCollections.cs index 862227f87..a3abfa188 100644 --- a/ICSharpCode.Decompiler.Tests/TestCases/Pretty/ParamsCollections.cs +++ b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/ParamsCollections.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty { @@ -15,6 +16,11 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty { } public static void ParamsSpan(params Span values) + { + // note: implicitly "scoped", "params scoped Span values" is allowed + // but "scoped" is always redundant for params. + } + public static void ParamUnscopedSpan([UnscopedRef] params Span values) { } }