Skip to content

Commit

Permalink
Attempt to fix AOT test
Browse files Browse the repository at this point in the history
  • Loading branch information
sakno committed Jan 2, 2025
1 parent 46fad62 commit ce85a0b
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/DotNext/Runtime/BoxedValue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,8 @@ namespace DotNext.Runtime;
{
internal T value;

static BoxedValue()
{
// AOT: instantiate the class to make instance members visible to AOT
var boxed = new BoxedValue<T>();
GC.KeepAlive(boxed);
}

[ExcludeFromCodeCoverage]
private BoxedValue()
{
}
private BoxedValue() => throw new NotImplementedException();

/// <summary>
/// Gets a reference to the boxed value.
Expand Down

0 comments on commit ce85a0b

Please sign in to comment.