"More generic" tie-breaker not applied to ValueTuple in C# 7 compiler #20494
Labels
Area-Compilers
Bug
Resolution-Fixed
The bug has been fixed and/or the requested behavior has been implemented
Tenet-Compatibility
Violation of forwards/backwards compatibility in a design-time piece.
Milestone
Version Used: 15.2
Steps to Reproduce:
Expected Behavior:
Code compiles without problem, just like it did using previous C# compilers.
Actual Behavior:
Compile fails at
M2(b)
, complaining thaterror CS0121: The call is ambiguous between the following methods or properties: 'C.M2<T>((T, int))' and 'C.M2<T>(((T, int), int))'
This is a regression from compilers previous to Visual Studio 2017.
/cc @jaredpar @MadsTorgersen
The text was updated successfully, but these errors were encountered: