Wiki

Ticket #59 (closed defect: fixed)

Opened 16 years ago

Last modified 16 years ago

No warning for derived methods that are not marked "override" or "new"

Reported by: Chuck Owned by:
Priority: major Milestone:
Component: Cobra Compiler Version: 0.8.0
Keywords: Cc:

Description

For example, if you define:

    def equals(other as Object) as bool
        ...

Cobra will not warn that .equals is not marked as "override" or "new" and not invoking base. This is particularly bad for .equals because the custom method will not get invoked for expressions like "a == b". This becomes a silent bug at run-time.

Change History

Changed 16 years ago by Chuck

  • status changed from new to closed
  • resolution set to fixed

This was only a problem when the derived method parameter types were different by being nilable or not.

Fixed in changeset:1745

Note: See TracTickets for help on using tickets.