Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThays Grazia <thaystg@gmail.com>2019-03-20 01:26:09 +0300
committerGitHub <noreply@github.com>2019-03-20 01:26:09 +0300
commit86e7400525fe369d6c3172c904b58227c1aa5aaa (patch)
tree86bb6321a2571e620b7368acae67d74469643172 /packaging
parent3a2d027e5e718ad35d745cd9dc166a92cfc1aec7 (diff)
[metadata][dim] Unexpected System.NotSupportedException in presence of default interface implementations (#13468)
* namespace Application { public interface I1 { void M1() { System.Console.WriteLine("Unexpected!!!"); }} public interface I2 : I1 { void I1.M1() { System.Console.WriteLine("I2.I1.M1"); }} public interface I3 : I1 { void I1.M1() { System.Console.WriteLine("I3.I1.M1"); }} public interface I4 : I1 { void I1.M1() { System.Console.WriteLine("I4.I1.M1"); }} class Test10 : I1, I2, I3, I4 { public void M1() { System.Console.WriteLine("Test10.M1"); } } class MainClass { public static void Main(string[] args) { I1 var = new Test10(); var.M1(); } } } The interface method M1 is overridden at I1, at I2, at I3, at I4. The class Test10 overrides method M1 so regardless of having methods overriden in interface, the method of the class should be priority in this case. And then I remove the conflicts because there is not a conflict anymore.
Diffstat (limited to 'packaging')
0 files changed, 0 insertions, 0 deletions