Ticket #87: tkt-87-multiple-access-modifiers.patch
File tkt-87-multiple-access-modifiers.patch, 1.5 KB (added by hopscc, 16 years ago) |
---|
-
Source/CobraParser.cobra
600 600 else 601 601 .throwError('Not expecting "[what]".') 602 602 if not .optional('COMMA') 603 v = .peek 604 if v.text in _validIsNames 605 .throwError(v, 'Multiple access modifiers should be separated by commas, e.g. "[what], [v.text]"') 603 606 break 604 607 .endOfLine 605 608 # TODO: error on virtual and override -
Tests/820-errors/300-statements/330-multiple-access-modifiers.cobra
1 class Test 2 3 var x is shared protected # .error. should be separated by commas 4 -
Developer/IntermediateReleaseNotes.text
29 29 Misc 30 30 ================================================================================ 31 31 32 32 Fixed: Better error message for multiple modifiers sans commas. Ticket:87 33 33 ================================================================================ 34 34 ================================================================================ 35 35