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

--- Comment #0 from Jonathan M Davis <> 2012-04-06 22:43:59 
PDT ---
This code compiles when it shouldn't:

void main()

void func()

pure unittest

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:
------- You are receiving this mail because: -------

Reply via email to