@system: //required to show the bug @safe void foo() {} void bar() @safe {} //this is not @safe somehow!! @safe void test() { foo(); bar(); } DMD 2.061 outputs: bug_safe.d(9): Error: safe function 'bug_safe.test' cannot call system function 'bug_safe.bar'
Possibly related: http://d.puremagic.com/issues/show_bug.cgi?id=9401
*** This issue has been marked as a duplicate of issue 9401 ***