1
F#类定义这是为什么接受:有和没有界面
type SomeClass<'T> =
val mutable id : int
val mutable result : 'T
但是,这并不:
type SomeIface =
abstract id : int
type SomeClass<'T> =
interface SomeIface with
val mutable id : int
val mutable result : 'T
编译器抱怨我使用“VAL”告诉我使用“成员'但是我不能使用可变的。