www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12638] New: Void can be ref

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

          Issue ID: 12638
           Summary: Void can be ref
           Product: D
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: temtaime gmail.com

ref foo() {}

And

ref void foo() {}

Compiles ok, but shouldn't i think.

--
Apr 24 2014