Skip to content

In NativeAOT, Null ref return throws NullReferenceException but should be wrapped in a TargetInvocationException  #69755

@jtschuster

Description

@jtschuster

In System.Reflection.Tests.InvokeRefReturnNetCoreTests, the tests TestNullRefReturnInvoke<T> and TestNullRefReturnOfPointer expect a System.Reflection.TargetInvocationException, but in NativeAOT it throws a NullReferenceException.

Related to #67457 and #69336.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions