[Issue 10925] New: unittests qualified on the right hand side fail

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Aug 30 00:25:32 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10925

           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 at puremagic.com
        ReportedBy: monarchdodra at gmail.com


--- Comment #0 from monarchdodra at gmail.com 2013-08-30 00:25:32 PDT ---
//====
pure unittest
{
}
//====
OK!

//====
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: -------


More information about the Digitalmars-d-bugs mailing list