www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10925] New: unittests qualified on the right hand side fail


           Summary: unittests qualified on the right hand side fail
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: monarchdodra gmail.com

--- Comment #0 from monarchdodra gmail.com 2013-08-30 00:25:32 PDT ---
pure unittest

unittest pure
Error: statement expected to be { }, not pure

This is inconsistent with how functions can be qualified. I, and others have
been hit by this, and is quite a pain.

ANother argument for allowing it is that the word "unittest" remainsthe first
word of the line, making it easier to detect *as* a unittest when scanning
through a document, rather than some function.

Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 30 2013