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: nob...@puremagic.com ReportedBy: k.hara...@gmail.com --- Comment #0 from Kenji Hara <k.hara...@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: -------