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


yebblies <yebbl...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |yebbl...@gmail.com
         Resolution|                            |FIXED


--- Comment #2 from yebblies <yebbl...@gmail.com> 2012-01-30 14:58:12 EST ---
Works on current dmd (1.068 & 2.058)

void main()
{
    class C {}
    C c;
    if (c != null) {}
    if (c == null) {}
}

Prints:

testx.d(5): Error: use '!is' instead of '!=' when comparing with null
testx.d(6): Error: use 'is' instead of '==' when comparing with null

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to