From f3cb77d05c13bee88550c3c06085efc25810d367 Mon Sep 17 00:00:00 2001 From: Jan Jones Date: Thu, 5 Oct 2023 16:58:09 +0300 Subject: [PATCH] Add missing `in` argument modifier --- .../Collections/ImmutableSegmentedListBuilderTest.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Compilers/Core/CodeAnalysisTest/Collections/ImmutableSegmentedListBuilderTest.cs b/src/Compilers/Core/CodeAnalysisTest/Collections/ImmutableSegmentedListBuilderTest.cs index 90c8bfb3be889..f369a082b2b58 100644 --- a/src/Compilers/Core/CodeAnalysisTest/Collections/ImmutableSegmentedListBuilderTest.cs +++ b/src/Compilers/Core/CodeAnalysisTest/Collections/ImmutableSegmentedListBuilderTest.cs @@ -380,7 +380,7 @@ public void ItemRef() var builder = new ImmutableSegmentedList.Builder(list); ref readonly var safeRef = ref builder.ItemRef(1); - ref var unsafeRef = ref Unsafe.AsRef(safeRef); + ref var unsafeRef = ref Unsafe.AsRef(in safeRef); Assert.Equal(2, builder.ItemRef(1));