http://d.puremagic.com/issues/show_bug.cgi?id=4076
--- Comment #3 from bearophile_h...@eml.cc 2011-09-21 13:25:54 PDT --- Another test case: import std.typecons; void main() { enum int N = 10; // line 3 // lot of code here... int[Tuple!(int, int)] aa; int x = aa[(1, N)]; } DMD 2.055 gives: test.d(3): Error: cannot implicitly convert expression (10) of type int to Tuple!(int,int) It's not easy to debug such code. The bug is in the line: int x = aa[(1, N)]; Its correct version is: int x = aa[tuple(1, N)]; -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------