I have an abstract class, with an abstract member. I want to inherit this member to different classes and make the overrides of the member static.
Something like this:
[<AbstractClass>]
type Parent() = class
abstract member Att : int
end;;
type Son() = class
inherit Parent()
static override Att = 10
end;;
type Daughter() = class
inherit Parent()
static override Att = 20
end;;
alternatively
[<AbstractClass>]
type Parent() = class
static abstract member Att : int
end;;
or
[<AbstractClass>]
type Parent() = class
abstract static member Att : int
end;;
Then all Sons would have Att=10 and all Daughters would have Att=20. This does not work.
Is there a way to make this work?