http://d.puremagic.com/issues/show_bug.cgi?id=7848
Summary: pure doesn't work on unittest blocks Product: D Version: unspecified Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: jmdavisp...@gmx.com --- Comment #0 from Jonathan M Davis <jmdavisp...@gmx.com> 2012-04-06 22:43:59 PDT --- This code compiles when it shouldn't: void main() { } void func() { } pure unittest { func(); } func is impure and should cause the compilation of the unittest block to fail. It fails if you mark it as @safe (since func is @system), but it doesn't fail for pure. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------