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
VerificationException with reflection, static abstract interface methods, and generic constraints #73658
Unhandled exception. System.Security.VerificationException: Method Outer`1+Inner[TOuter].M: type argument 'TInner' violates the constraint of type parameter 'TInner'.
at System.RuntimeType.GetInterfaceMap(Type ifaceType)
I believe the issue is a bug. The milestone change just means that it's too late in .NET 7 release cycle to fix this especially as we haven't yet identified the correct fix. Once the fix is understood we may be able to fix this in a servicing release.
Reacted by aepot, David Rettenbacher, Jorge Morales, nathpete-msft, Cédric Luthi, Yunus Emre and Joe4evr
Not that big a deal for me, since this was an exploratory slab of code, but now I know this behavior is a bug and what I had expected it to do is likely what I want. Shame there's not a clear timeframe on the fix yet, but oh well.
Activity
mangod9 commentedon Aug 10, 2022
@trylek / @davidwrighton if this is expected?
trylek commentedon Aug 10, 2022
I'll take a look later today once I'm done with another SVM-related bug.
mangod9 commentedon Aug 15, 2022
moving to 8 to reduce churn at this point.
danmoseley commentedon Aug 15, 2022
@silkfire you marked thumbs down. Is this issue affecting you?
silkfire commentedon Aug 16, 2022
Not directly. It was more to show support to those people who were hoping this would be fixed in the upcoming .NET version.
aepot commentedon Aug 21, 2022
@mangod9 Is it really more than one year needed to say is that expected or bug? :) Sorry if I've misinterpreted the milestone assign.
I was affected by the issue on .NET 7 (p7). Nothing serious but just curious what was that.
trylek commentedon Aug 21, 2022
I believe the issue is a bug. The milestone change just means that it's too late in .NET 7 release cycle to fix this especially as we haven't yet identified the correct fix. Once the fix is understood we may be able to fix this in a servicing release.
Joe4evr commentedon Nov 25, 2022
Welp, I hit this today.
Not that big a deal for me, since this was an exploratory slab of code, but now I know this behavior is a bug and what I had expected it to do is likely what I want. Shame there's not a clear timeframe on the fix yet, but oh well.
Add support for default implementation of static virtuals with method…