1
は私がしようとしているものです:F#でNullable抽象タイプを使用するにはどうすればよいですか?ここ
and [<AbstractClass>] Figure() =
let mutable name : string = ""
let mutable color : ColorType = WHITE
abstract member Name : string
member F.Color
with get() = color
and set v = color <- v
abstract member motion : Dashboard -> SPosition -> ColorType -> list<SPosition * CellDashboard * bool>;
override F.ToString() = name
and CellDashboard(addingFigure : Nullable<Figure>) as C =
let mutable attacked : bool = false;
let mutable cleaned : bool = false;
let mutable _CellState : Nullable<Figure> = Nullable<Figure>(addingFigure);
トラブルがある:
Error 1 A generic construct requires that the type 'Figure' be non-abstract
なぜですか?そして、どうすればこのエラーを回避できますか?