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)"


           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

--- Comment #0 from Ali Cehreli <acehreli yahoo.com> 2011-11-03 14:34:53 PDT ---
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