Skip to content

Commit

Permalink
Unblocked the rest of checks
Browse files Browse the repository at this point in the history
  • Loading branch information
sakno committed Jan 2, 2025
1 parent 104745d commit a17b85a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/DotNext.AotTests/Runtime/BoxedValueTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ public void BoxUnbox()
{
var obj = (BoxedValue<int>)42;
Assert.AreEqual(42.GetHashCode(), obj.GetHashCode());
Assert.AreEqual(42, obj.GetReference());
// Assert.AreEqual(42, (int)obj);
// Assert.AreEqual(typeof(int), obj.GetType());
Assert.AreEqual(42, obj.Unbox());
Assert.AreEqual(42, (int)obj);
Assert.AreEqual(typeof(int), obj.GetType());
}

// [TestMethod]
Expand Down
2 changes: 1 addition & 1 deletion src/DotNext/Runtime/BoxedValue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public static implicit operator ValueReference<T>(BoxedValue<T> boxedValue)

public static class BoxedValue
{
public static ref T GetReference<T>(this BoxedValue<T> boxedValue)
public static ref T Unbox<T>(this BoxedValue<T> boxedValue)
where T : struct
=> ref boxedValue.value;
}

0 comments on commit a17b85a

Please sign in to comment.