Closed eiriktsarpalis closed 1 week ago
Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas See info in area-owners.md if you want to be subscribed.
So looks like this is already fixed in .NET 10 - #108235 happens to also fix this because it touched the logic just enough. The problem was with us not marking the interface as used.
I'll request a backport.
I also made a pull request that adds this testcase since all tests for #108235 involved IDynamicInterfaceCastable.
Description
I encountered this regression while migrating a library of mine to .NET 9.
Reproduction Steps
Compile and run the following console app as a NAOT application
Expected behavior
Should execute without incident.
Actual behavior
Throws the following exception:
Regression?
This is a regression from .NET 8.
Known Workarounds
No response
Configuration
Other information
No response