Bug 9371 – @safe works or doesn't depending on the position

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-01-22T11:53:00Z
Last change time
2013-09-09T10:36:52Z
Assigned to
nobody
Creator
dmitry.olsh
See also
http://d.puremagic.com/issues/show_bug.cgi?id=9401

Comments

Comment #0 by dmitry.olsh — 2013-01-22T11:53:40Z
@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'
Comment #1 by monarchdodra — 2013-01-26T06:28:36Z
Comment #2 by dmitry.olsh — 2013-09-09T10:36:52Z
*** This issue has been marked as a duplicate of issue 9401 ***