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) { } }