Ticket #283 (assigned defect)
Parser error regarding multi-line collection literals
Reported by: | Charles | Owned by: | Chuck |
---|---|---|---|
Priority: | medium | Milestone: | |
Component: | Cobra Compiler | Version: | 0.8.0 |
Keywords: | parser | Cc: |
Description
The following program produces a false error from the parser:
class A var t = [ 0, 1, 3 ] var obj as Object def main pass
x-parser-problem.cobra(7,1): error: Expecting use, assembly, namespace, class, interface or enum, but got "var".
It doesn't matter if the literal is a list or array. Until there is a fix, the workaround is to put the closing bracket (]) on the same level as the starting var.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.