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
1348 1348 if params.count == 0, unnecessary = true 1349 1349 else 1350 1350 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 "("') 1351 1354 else 1352 1355 params = List<of Param>() 1353 1356 if unnecessary -
Tests/820-errors/400-declarations/216-method-space-after-name.cobra
1 class 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
404 404 * Fixed: Numeric for expression broken for `get` expressions with types other than `int` ticket:158 405 405 406 406 * 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?