[REG2.061] Issue 10498 - `__traits(compiles, ...)` affect program behaviour

http://d.puremagic.com/issues/show_bug.cgi?id=10498

This is caused by implementing issue 5893 (#989).