[Issue 3269] New: pure functions silently become nothrow

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Aug 28 11:05:14 PDT 2009


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

           Summary: pure functions silently become nothrow
           Product: D
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: andrei at metalanguage.com


class A
{
    pure static void raise(string s)
    {
        throw new Exception(s);
    }
}

void main()
{
    A.raise("a");
}

This code compiles and runs without an error!

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