https://d.puremagic.com/issues/show_bug.cgi?id=8374
--- Comment #7 from [email protected] 2013-11-26 05:08:07 PST --- (In reply to comment #5) > The problem is, while [10,20] converts to int[2], int[2] converts to int[]. > int[] is picked as the common type. I'm not entirely sure we want to change > that. The current situation is a little more subtle: int[2] foo1() { int[2] a; return true ? a : [1, 2]; // OK } const(int[2]) foo2() { int[2] a; return true ? a : [1, 2]; // OK } const(int[2]) foo3() { const int[2] a; return true ? a : [1, 2]; // error } void main() {} -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
