www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 24467] New: Allow unittest functions to support expressions

https://issues.dlang.org/show_bug.cgi?id=24467

          Issue ID: 24467
           Summary: Allow unittest functions to support expressions only
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: alphaglosined gmail.com

According to Nicholas Wilson unittests are functions.

https://forum.dlang.org/post/zbbtjhojyncweijbinbr forum.dlang.org

They should support expression syntax that all functions support.

``unittest() => assert(1==1);``

--
Mar 29