You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is equivalent to Overture bug #366. When an abstract function or operation is inherited by a subclass, that class is also abstract (cannot be instantiated) unless it implements the op/fn. This works. However, if the subclass has another op/fn that would overload with the inherited name, it is still necessary to implement the abstract op/fn to allow instantiation, but this test does not work. The following specification allows B to be instantiated (but it is abstract):
class A
operations
public op: () ==> ()
op() == is subclass responsibility;
end A
class B is subclass of A
operations
public op: nat ==> ()
op(-) == skip;
end B
The text was updated successfully, but these errors were encountered:
This is equivalent to Overture bug #366. When an abstract function or operation is inherited by a subclass, that class is also abstract (cannot be instantiated) unless it implements the op/fn. This works. However, if the subclass has another op/fn that would overload with the inherited name, it is still necessary to implement the abstract op/fn to allow instantiation, but this test does not work. The following specification allows B to be instantiated (but it is abstract):
The text was updated successfully, but these errors were encountered: