-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Respect derived type preference in overload resolution
according to the spec, this is the rule with priority second only to "instance > extension". The change is needed to fix problems with multiple times overriden operators Easy to try demo in C# that this is how we should behave: public class C { public void M() { B.Method((int)1); } } public class A { public static void Method(int a) { } } public class B : A { public static void Method(object a) { } }
- Loading branch information
Showing
1 changed file
with
46 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters