Skip to content

Commit

Permalink
Revert "Backport test fixes from #70428"
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeRobich authored Jun 7, 2024
1 parent 01c7636 commit f435dbb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ public void ItemRef()
var builder = new ImmutableSegmentedList<int>.Builder(list);

ref readonly var safeRef = ref builder.ItemRef(1);
ref var unsafeRef = ref Unsafe.AsRef(in safeRef);
ref var unsafeRef = ref Unsafe.AsRef(safeRef);

Assert.Equal(2, builder.ItemRef(1));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ public void ItemRef()
var list = new[] { 1, 2, 3 }.ToImmutableSegmentedList();

ref readonly var safeRef = ref list.ItemRef(1);
ref var unsafeRef = ref Unsafe.AsRef(in safeRef);
ref var unsafeRef = ref Unsafe.AsRef(safeRef);

Assert.Equal(2, list.ItemRef(1));

Expand Down

0 comments on commit f435dbb

Please sign in to comment.