Addressing interface conflicts in F#

Viewed 177

I would like to implement the solution described here in F#: Inheritance from multiple interfaces with the same method name

Specifically, in F#, how do I address implementing interface functions that share the same name between two interfaces?

Here is the C# solution:

public interface ITest {
    void Test();
}
public interface ITest2 {
    void Test();
}
public class Dual : ITest, ITest2
{
    void ITest.Test() {
        Console.WriteLine("ITest.Test");
    }
    void ITest2.Test() {
        Console.WriteLine("ITest2.Test");
    }
}
1 Answers
Related