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