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

           Summary: @safe works or doens't depending on position
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: dmitry.o...@gmail.com


--- Comment #0 from Dmitry Olshansky <dmitry.o...@gmail.com> 2013-01-22 
11:53:40 PST ---
@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'

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to