Issue 6359 - Pure/@safe-inference should not be affected by __traits(compiles)

https://issues.dlang.org/show_bug.cgi?id=6359