F # Is it possible that an interface implements an interface?

Is it possible to do something like this:

type face1 = 
    interface
    // ...
    end

type face2 =
    interface
    // ...
    interface face1 with
    // ...
    end

      

So anything that face2 interfaces can also be thought of as face1?

+3


source to share


1 answer


It is not possible to implement an interface, but you can inherit from one interface:

type face1 = 
    interface
    end

type face2 =
    interface
        inherit face1
    end

      



Thus, developers will need to provide an implementation face1

in addition to what is requested face2

.

+3


source







All Articles