Replies: 2 comments
-
Generic constraints aren't currently part of overload resolution. I believe that this would be covered by the existing championed proposal #98. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Constraints cannot be used to disambiguate methods. Yet. As @HaloFour points out, #98 is an open proposal that should make this work. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I made extension method with signature like this
Which I expect that when I put generic type as
string
it should map with the function withwhere T : class
which just treat it asparams string[]
but it not. I think this is unexpected behavior of compilerps. The actual code is converter from database
ps2. should this be on roslyn?
Beta Was this translation helpful? Give feedback.
All reactions