type
是semilattice_sup
類的一個實例:如何定義type_synonym的類實例?
datatype type = BType | IType | AType
instantiation type :: semilattice_sup
begin
end
我想聲明type × bool
類型爲這個類的一個實例太:
type_synonym stype = "type × bool"
instantiation stype :: semilattice_sup
begin
end
,但我得到了以下錯誤:
Bad type name: "stype"
如何定義type_synonym的類實例?