[Issue 10756] New: "has no effect in expression" error message with correct type name
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Aug 4 10:38:24 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10756
Summary: "has no effect in expression" error message with
correct type name
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: bearophile_hugs at eml.cc
--- Comment #0 from bearophile_hugs at eml.cc 2013-08-04 10:38:23 PDT ---
A low priority enhancement request (in Bugzilla I'd like to be able to give an
importance high, or low, to enhancement requests too):
void main() {
'a';
1;
2U;
3UL;
4.0f;
}
dmd 2.064alpha gives:
test.d(2): Error: long has no effect in expression ('a')
test.d(3): Error: long has no effect in expression (1)
test.d(4): Error: long has no effect in expression (2u)
test.d(5): Error: long has no effect in expression (3LU)
test.d(6): Error: double has no effect in expression (4.00000)
I think those error messages should be improved a little, printing the correct
type name.
--
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