Ticket #59 (closed defect: fixed)
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
Note: See
TracTickets for help on using
tickets.