[Swift-devel] [Bug 118] New: syntax error report when [] used incorrectly in an expression

bugzilla-daemon at mcs.anl.gov bugzilla-daemon at mcs.anl.gov
Fri Dec 14 07:21:26 CST 2007


http://bugzilla.mcs.anl.gov/swift/show_bug.cgi?id=118

           Summary: syntax error report when [] used incorrectly in an
                    expression
           Product: Swift
           Version: unspecified
          Platform: Macintosh
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: SwiftScript language
        AssignedTo: benc at hawaga.org.uk
        ReportedBy: benc at hawaga.org.uk
                CC: swift-devel at ci.uchicago.edu


volume brainatlas = average(aligned[]);

gives error:

Could not compile SwiftScript source: line 45:19: unexpected token: =

pointing to the = of assignment. It would be preferable if the error is
reported at the incorrect [] pair 
Perhaps indicate missing constant there, as that seems closest to what would be
syntactically correct; although in this case the [] shouldn't have been there
at all.


-- 
Configure bugmail: http://bugzilla.mcs.anl.gov/swift/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the Swift-devel mailing list