[Issue 3434] New: +f(); should be an invalid statement.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Oct 22 07:53:59 PDT 2009
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 at puremagic.com
ReportedBy: kennytm at gmail.com
--- Comment #0 from kennytm at 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: -------
More information about the Digitalmars-d-bugs
mailing list