[Issue 9312] New: with statement error message should say structs are allowed as expressions
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jan 13 11:03:23 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9312
Summary: with statement error message should say structs are
allowed as expressions
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: diagnostic, pull
Severity: normal
Priority: P2
Component: DMD
AssignedTo: andrej.mitrovich at gmail.com
ReportedBy: andrej.mitrovich at gmail.com
--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-01-13 11:03:22 PST ---
void main()
{
with (1)
{
}
}
$ dmd test.d
> Error: with expressions must be class objects, not 'int'
Should be:
Error: with expressions must be class or struct objects, not 'int'
--
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