← Back to index
|
Original Bugzilla link
Bug 7235 – throwing away return value of pure function should yield an error
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-01-05T14:15:00Z
Last change time
2012-01-05T14:38:57Z
Keywords
accepts-invalid, diagnostic
Assigned to
nobody
Creator
hoganmeier
Comments
Comment #0
by hoganmeier — 2012-01-05T14:15:03Z
pure int foo() {return 1;} void main() { foo(); } Doesn't make any sense to me. closely related to
http://d.puremagic.com/issues/show_bug.cgi?id=3572
Comment #1
by hoganmeier — 2012-01-05T14:38:57Z
*** This issue has been marked as a duplicate of issue 3882 ***