Why not also allow static virtual call-sites in generic methods constrained by abstract classes, just like we can with interfaces? #73687
Replies: 1 comment 1 reply
-
Closing out. This is a csharplang discussion. To answer the question:
It's possible this could be supported. If both the runtime and language feels like it's worthwhile. However, changes in the language need to happen starting with a discussion over at dotnet/csharplang. dotnet/roslyn is the compiler, which implements the language as specified. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
(I'm asking about this after responding to this SO question)
Since C# 11, we can do this:
I see no reason why this can't be extended to
abstract class
members either (excepting thatclass
generic constraints can't be intersection types, ofc):...or is there a good reason for not allowing this?
Beta Was this translation helpful? Give feedback.
All reactions