http://d.puremagic.com/issues/show_bug.cgi?id=3903
Summary: Traits compiles as true for an array sum with wrong syntax Product: D Version: 2.041 Platform: x86 OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: bearophile_h...@eml.cc --- Comment #0 from bearophile_h...@eml.cc 2010-03-08 15:04:06 PST --- This compiles, but the traits has to return 'false' here: void main() { int[2] a = [1, 2]; assert( __traits(compiles, {return a + a;}) ); //auto r = a + a; // error } See also bug 3817 . -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------