[Issue 9199] New: Module level qualified functions should be rejected

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Dec 23 06:39:19 PST 2012


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

           Summary: Module level qualified functions should be rejected
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: accepts-invalid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: k.hara.pg at gmail.com


--- Comment #0 from Kenji Hara <k.hara.pg at gmail.com> 2012-12-23 06:39:18 PST ---
Module level functions with qualifiers should report compile error, but
doesn't.

void fc() const {}
void fi() immutable {}
void fw() inout {}
void fs() shared {}

In above, fc and fi reports
  Error: function test.foo without 'this' cannot be const/immutable
But fw and fs compiles with no 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