This project is read-only.
2
Vote

Rename doesn't resolve conflict by casting to interface

description

Source:
public class Base : IEnumerable {
    public IEnumerator GetEnumerator() {
        throw new NotImplementedException();
    }
}
public sealed class Derived : Base, IWeird, IEnumerable {
    public void X() { this.GetEnumerator(); }
}
interface IWeird {
    void X();
}
Rename X in the interface to GetEnumerator().

It should resolve the conflict by casting this to IEnumerable.

comments

Pilchie wrote Nov 17, 2014 at 5:40 PM

Since a conflict is detected and this case is fairly rare, we will probably not invest in a resolution in the near future.