Skip to content

Commit ce85a0b

Browse files
committed
Attempt to fix AOT test
1 parent 46fad62 commit ce85a0b

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
@@ -26,17 +26,8 @@ namespace DotNext.Runtime;
2626
{
2727
internal T value;
2828

29-
static BoxedValue()
30-
{
31-
// AOT: instantiate the class to make instance members visible to AOT
32-
var boxed = new BoxedValue<T>();
33-
GC.KeepAlive(boxed);
34-
}
35-
3629
[ExcludeFromCodeCoverage]
37-
private BoxedValue()
38-
{
39-
}
30+
private BoxedValue() => throw new NotImplementedException();
4031

4132
/// <summary>
4233
/// Gets a reference to the boxed value.

0 commit comments

Comments
 (0)