[Swift-devel] [Bug 213] New: assignment before declaration causes runtime error but not compile error.

bugzilla-daemon at mcs.anl.gov bugzilla-daemon at mcs.anl.gov
Thu Jun 25 03:28:29 CDT 2009


https://bugzilla.mcs.anl.gov/swift/show_bug.cgi?id=213

           Summary: assignment before declaration causes runtime error but
                    not compile error.
           Product: Swift
           Version: unspecified
          Platform: PC
        OS/Version: Mac OS
            Status: NEW
          Severity: normal
          Priority: P2
         Component: General
        AssignedTo: benc at hawaga.org.uk
        ReportedBy: benc at hawaga.org.uk


This code causes runtime error. It should either be detected at compile time or
work.

m = "hi";
string m;

$ swift tmp-sa.swift 
Swift svn swift-r2980 cog-r2407

RunID: 20090625-0927-ipsz0v96
Progress:
Execution failed:
    java.lang.IllegalArgumentException: m is closed with a value of null

-- 
Configure bugmail: https://bugzilla.mcs.anl.gov/swift/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching the reporter.



More information about the Swift-devel mailing list