C# compiler should report CS0121 consistently between VS2017 and VS2019, when ambiguous call is detected in named method syntax #35361
Labels
Area-Compilers
Question
Resolution-By Design
The behavior reported in the issue matches the current design
Version Used: VS2017 Enterprise (15.9.11) and VS2019 Enterprise (16.0.2)
Steps to Reproduce:
Class1.cs
contents withExpected Behavior: Both VS2017 and VS2019 either report (or handle) the "ambiguous" declaration the same, when using Named method syntax
Actual Behavior: VS2019 Enterprise (and hosted 2019 build agent in Azure DevOps) compiles successfully, but VS2019 Enterprise (and hosted 2017 build agent in Azure DevOps) throws a compilation error of
CS0121 The call is ambiguous between the following methods or properties: 'TransformBlock<TInput, TOutput>.TransformBlock(Func<TInput, TOutput>)' and 'TransformBlock<TInput, TOutput>.TransformBlock(Func<TInput, Task<TOutput>>)'
This is likely shoddy architecture, but regardless of that, VS2017 and VS2019 compilers should really behave consistently, between the 2 versions.
I've tried the following Dataflow versions, which all exhibit the same behaviour:
The text was updated successfully, but these errors were encountered: