I want to declare two related classes, so I declare them together connected by "and". Each of them has different attributes, but this code does not work (error "Unexpected keyword" and "in the definition" in the keyword "and". How to declare attributes of the second class?
[<AbstractClass>]
type foo() =
abstract member fun1 : foo -> foo2
[<Serializable>]
and foo2() = class
member x.bar y = y
end
source
share