I have an interface, in IAnimal.fs,
namespace Kingdom
type IAnimal =
abstract member Eat : Food -> unit
and another interface that successfully inherits it, in IMammal.fs.
namespace Kingdom
type IMammal =
inherit IAnimal
But, when I try to inherit it again I get an exception (IBird.fs)
namespace Kingdom
type IBird =
inherit IAnimal
The exceptions are
The type 'obj' is not an interface type
and
The type 'IAnimal' is not defined
and IAnimal har a red line under it in IBird.fs.
I've tried copy/paste the definition of IMammal and change IMammal to IBird but I still get the same error. Also tried restarting Visual Studio.
What could be wrong?
IMammal.fsandIBird.fsmust come afterIAnimal.fs- TheQuickBrownFox