https://issues.dlang.org/show_bug.cgi?id=19268
--- Comment #11 from Steven Schveighoffer <[email protected]> --- (In reply to ZombineDev from comment #5) > I guess the trickiest problem to solve is what to do about is(typeof({ code; > })) and __traits(compiles, { code; }). Allowing those constructs to yield > true while containing non-betterc code would lead to logical contradictions. > Disallowing betterc code in such speculative contexts, while allowing it in > CTFE context would be strange. When trying to test stuff surrounding this, I'll note that a betterC error seems to kill the compilation when used inside __traits(compiles). This prints nothing and produces no binary: extern(C) void main() { int[] arr; pragma(msg, __traits(compiles, arr.idup)); } --
