Wiki

Ticket #183: method-spc-after-name.patch

File method-spc-after-name.patch, 1.6 KB (added by hopscc, 15 years ago)
  • Source/CobraParser.cobra

     
    13481348                if params.count == 0, unnecessary = true 
    13491349            else 
    13501350                params = List<of Param>() 
     1351        else if opener.which == 'ID'  and  .optional('LPAREN') 
     1352            # def id (... - misplaced space after name   
     1353            .throwError('Misplaced space between method name and opening brace "("')  
    13511354        else 
    13521355            params = List<of Param>() 
    13531356        if unnecessary 
  • Tests/820-errors/400-declarations/216-method-space-after-name.cobra

     
     1class Pb 
     2    def pox (p as System.Object)    # .error.  Misplaced space between method name and opening brace 
     3            pass 
     4 
     5    def main is shared 
     6        pass 
  • Developer/IntermediateReleaseNotes.text

     
    404404* Fixed: Numeric for expression broken for `get` expressions with types other than `int`  ticket:158 
    405405 
    406406* Fixed: Operators `?` and `?=` give error if left hand expression is not nilable.  ticket:117 
     407 
     408* Fixed: Assert error instead of message if put space after name in method dcl: ticket:18?