Ticket #361 (new defect)
Getters should always specify return types
Reported by: | kobi7 | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | Cobra Compiler | Version: | 0.9.6 |
Keywords: | getter | Cc: |
Description
currently cobra accepts code such as this:
get hasSubCmds return _sub.count > 0
however it seems to get confused about the type, in the call site.
I suggest making it mandatory to supply a return value, (which the user may simply forget sometimes).
get hasSubCmds as bool return _sub.count > 0
Change History
Note: See
TracTickets for help on using
tickets.