View mode: basic / threaded / horizontal-split · Log in · Help
January 13, 2013
[Issue 9312] New: with statement error message should say structs are allowed as expressions
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@gmail.com
       ReportedBy: andrej.mitrovich@gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrovich@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: -------
January 13, 2013
[Issue 9312] with statement error message should say structs are allowed as expressions
http://d.puremagic.com/issues/show_bug.cgi?id=9312



--- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-01-13 11:06:08 PST ---
https://github.com/D-Programming-Language/dmd/pull/1479

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 14, 2013
[Issue 9312] with statement error message is wrong
http://d.puremagic.com/issues/show_bug.cgi?id=9312


Andrej Mitrovic <andrej.mitrovich@gmail.com> changed:

          What    |Removed                     |Added
----------------------------------------------------------------------------
           Summary|with statement error        |with statement error
                  |message should say structs  |message is wrong
                  |are allowed as expressions  |


--- Comment #2 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-01-13 19:07:17 PST ---
Actually it shouldn't list anything because there's too much to list, e.g.
structs, classes, modules, enums, etc.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 14, 2013
[Issue 9312] with statement error message is wrong
http://d.puremagic.com/issues/show_bug.cgi?id=9312


Kenji Hara <k.hara.pg@gmail.com> changed:

          What    |Removed                     |Added
----------------------------------------------------------------------------
            Status|NEW                         |RESOLVED
        Resolution|                            |FIXED


--- Comment #3 from Kenji Hara <k.hara.pg@gmail.com> 2013-01-13 23:10:08 PST ---
https://github.com/D-Programming-Language/dmd/commit/617c393034024471722ed73711d7100fa3a45780

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Top | Discussion index | About this forum | D home