[Bug] Method Overloads require unnecessary references. #1270
Replies: 5 comments
-
Your code is referencing a method group for which some members are not available to the compiler due to missing references. The language specifies overload resolution for the method group, but the compiler needs to have the method group t implement the spec. |
Beta Was this translation helpful? Give feedback.
-
Ohh is that why that happens? I never figured out where that was coming from. |
Beta Was this translation helpful? Give feedback.
-
Discussion is here if you're interested: dotnet/roslyn#9370 |
Beta Was this translation helpful? Give feedback.
-
Introducing a breaking change via a new compiler in order to comply with the spec seems an odd decision. Changing the spec to respect how the compiler worked would seem a more sensible course of action to me. But what is done is done... |
Beta Was this translation helpful? Give feedback.
-
@DavidArno the old compiler’s behavior was not fully rational, nor explainable in terms the language spec defines. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Let's say you have the following code:
Project1.dll:
Project2.dll (References Project1):
Project3.dll (References Project 2 but not project 1):
I believe I should be able to call an overloaded method without referencing every assembly for every time in every overload of a method.
Beta Was this translation helpful? Give feedback.
All reactions