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的类实例?