www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 3434] New: +f(); should be an invalid statement.

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

           Summary: +f(); should be an invalid statement.
           Product: D
           Version: 2.035
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: kennytm gmail.com


--- Comment #0 from kennytm gmail.com 2009-10-22 07:53:58 PDT ---
As titled. The following code should cause a compile error. 



int f() { return 0; }

void main () {
//      -f(); // Error: - has no effect in expression (-f())
        +f(); // But this is valid... ?
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 22 2009