www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 6889] New: "finally" mentioned in a compilation error, instead of "scope(exit)" or "scope(success)"

http://d.puremagic.com/issues/show_bug.cgi?id=6889

           Summary: "finally" mentioned in a compilation error, instead of
                    "scope(exit)" or "scope(success)"
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: acehreli yahoo.com



The error message mentions "finally", instead of "scope(exit)":

deneme.d(53539): Error: cannot put catch statement inside finally block

The program to reproduce with dmd 2.056:

void main()
{
    scope(exit) try {} catch {}
}

Note that it is the same with scope(success).

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 03 2011