You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Delegates closed over null are broken in Mono #126284
UnhandledException:
System.InvalidProgramException: Invalid IL code in(wrapperdelegate-invoke)System.Func`1<bool>:invoke_callvirt_TResult (): IL_0066: ldarga.s 1
at Program.Nul()
at Program.Main()
Regression?
No idea.
Known Workarounds
Don't use Mono
Configuration
Mono main windows/linux x64
Other information
One issue I found was that Mono was incorrectly using target being null to decide the stub but even after I fixed that here, the issue was still broken.
Activity
dotnet-policy-service commentedon Mar 29, 2026
Tagging subscribers to this area: @steveisok, @vitek-karas
See info in area-owners.md if you want to be subscribed.
MichalPetryka commentedon Jun 12, 2026
This regressed in 8.0, probably in #83705, cc @BrzVlad since you approved it and know the code better than me (and cause Zoltan left MS afair).
steveisok commentedon Jul 10, 2026
@MichalPetryka given we are moving mono configurations towards coreclr, I don't think this is worth addressing.