December 20, 2009 [Issue 3636] New: module-level @safe not propagated to struct members | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=3636 Summary: module-level @safe not propagated to struct members Product: D Version: 2.036 Platform: Other OS/Version: Mac OS X Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: michel.fortin@michelf.com --- Comment #0 from Michel Fortin <michel.fortin@michelf.com> 2009-12-20 10:19:00 EST --- This does not compile, but it should: @safe { struct A { void hello() { } } void test() { A a; a.hello(); // Error: safe function 'test' cannot call system function 'hello' } } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
June 11, 2011 [Issue 3636] module-level @safe not propagated to struct members | ||||
---|---|---|---|---|
| ||||
Posted in reply to Michel Fortin | http://d.puremagic.com/issues/show_bug.cgi?id=3636 yebblies <yebblies@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |yebblies@gmail.com Resolution| |FIXED --- Comment #1 from yebblies <yebblies@gmail.com> 2011-06-11 00:49:28 PDT --- This code now works (dmd2.053) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation