Ticket #60 (closed defect: fixed)
Method overrides can narrow a type from nilable to not-nilable
Reported by: | Chuck | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | Cobra 0.9 |
Component: | Cobra Compiler | Version: | 0.8.0 |
Keywords: | Cc: |
Description
...but they should not be able to. This must be an error:
def equals(other as Object) as bool is override # must be: def equals(other as Object?) as bool is override
Change History
Note: See
TracTickets for help on using
tickets.