Closed
Description
openedon Jul 13, 2021
The following code correctly runs on CoreCLR and fails on NativeAOT:
https://gist.github.com/Suchiman/b09ad481065e3e2b17d89e321121bacc
NativeAOT fails with the following exception: System.NotSupportedException: Cannot create boxed ByRef-like values.
The issue occurs at this line:
typeof(Program).GetMethod("Method")!.CreateDelegate<ExampleDelegate>();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment