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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Nov 3 14:35:24 PDT 2011


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 at puremagic.com
        ReportedBy: acehreli at yahoo.com


--- Comment #0 from Ali Cehreli <acehreli at 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: -------


More information about the Digitalmars-d-bugs mailing list