Skip to content

Commit 73edce0

Browse files
committed
Attempt to fix AOT compatibility
1 parent d1e3c25 commit 73edce0

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/DotNext/Runtime/BoxedValue.cs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace DotNext.Runtime;
2121
/// not for <see cref="BoxedValue{T}"/>.
2222
/// </remarks>
2323
/// <typeparam name="T">The value type.</typeparam>
24-
public abstract class BoxedValue<T> // do not add any interfaces or base types
24+
public class BoxedValue<T> // do not add any interfaces or base types
2525
where T : struct
2626
{
2727
[ExcludeFromCodeCoverage]
@@ -108,13 +108,4 @@ namespace DotNext.Runtime;
108108
/// <returns>Mutable reference to the boxed value.</returns>
109109
public static implicit operator ValueReference<T>(BoxedValue<T> boxedValue)
110110
=> new(boxedValue, ref boxedValue.Value);
111-
112-
/// <inheritdoc />
113-
public abstract override bool Equals([NotNullWhen(true)] object? obj); // abstract to avoid inlining by AOT/JIT
114-
115-
/// <inheritdoc />
116-
public abstract override int GetHashCode(); // abstract to avoid inlining by AOT/JIT
117-
118-
/// <inheritdoc />
119-
public abstract override string ToString(); // abstract to avoid inlining by AOT/JIT
120111
}

0 commit comments

Comments
 (0)