Wiki

Ticket #124 (closed enhancement: fixed)

Opened 9 years ago

Last modified 9 years ago

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

Changed 9 years ago by Kurper

  • summary changed from Add "extraneous parentheses" compiler warning for delegates to Add "extraneous parentheses" compiler warning for anonymous methods

Changed 9 years ago by Chuck

  • owner set to Chuck
  • status changed from new to accepted
  • milestone set to Cobra 0.9

Changed 9 years ago by Chuck

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

Fixed in changeset:1997 and changeset:1998
Fixed for lambdas as well.

Note: See TracTickets for help on using tickets.