DMD 1.028 on linux does not issue an error for class types compared against null literal.
*** Issue 6444 has been marked as a duplicate of this issue. ***
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