Ticket #124 (closed enhancement: fixed)
Add "extraneous parentheses" compiler warning for anonymous methods
Reported by: | Kurper | Owned by: | Chuck |
---|---|---|---|
Priority: | trivial | Milestone: | Cobra 0.9 |
Component: | Cobra Compiler | Version: | 0.8.0 |
Keywords: | Cc: |
Description
things like
def init()
generate compiler warnings, since
def init
works just as well. but
listen .click, do()
does not produce a warning, even though
listen .click, do
works. Alternately, if you think that the first form is superior (since it's more obvious what's going on), perhaps the second form should be disallowed.
Change History
Note: See
TracTickets for help on using
tickets.