[Issue 869] Cast of a parenthesized expression combined with !is is mistaken for a C style cast and a template specialization

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jun 30 10:33:35 PDT 2009


http://d.puremagic.com/issues/show_bug.cgi?id=869


Christian Kamm <kamm-removethis at incasoftware.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch
                 CC|                            |kamm-removethis at incasoftwar
                   |                            |e.de




--- Comment #2 from Christian Kamm <kamm-removethis at incasoftware.de>  2009-06-30 10:33:34 PDT ---
DMD 1.045 digests the following test case without complaint:

class C {}
C foo;
void main() {
  assert (cast(Object)(foo) !is null);
}

To resolve this issue, add the following line to "Identity Expressions":

The is and !is expressions have the same precedence as the equality expressions
== and !=.

-- 
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