[Issue 9371] New: @safe works or doens't depending on position
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jan 22 11:53:42 PST 2013
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: nobody at puremagic.com
ReportedBy: dmitry.olsh at gmail.com
--- Comment #0 from Dmitry Olshansky <dmitry.olsh at 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: -------
More information about the Digitalmars-d-bugs
mailing list