Bug 9199 – Module level qualified functions should be rejected
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-12-23T06:39:00Z
Last change time
2013-02-18T00:00:09Z
Keywords
accepts-invalid, pull
Assigned to
nobody
Creator
k.hara.pg
Comments
Comment #0 by k.hara.pg — 2012-12-23T06:39:18Z
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.