[Issue 10501] New: Can't put the safety attribute at the end of	module constructor signature
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Sat Jun 29 09:22:19 PDT 2013
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=10501
           Summary: Can't put the safety attribute at the end of module
                    constructor signature
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: tommitissari at hotmail.com
--- Comment #0 from Tommi <tommitissari at hotmail.com> 2013-06-29 09:22:18 PDT ---
The safety attributes: @safe, @trusted and @system can be put only before the
static constructor signature, not at the end of it. This is not consistent with
their behaviour in other function signatures:
class C
{
    this() @safe { } // OK
    void foo() @safe { } // OK
}
@safe static this() { } // OK
static this() @safe { } // Error
shared static this() @safe { } // 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