https://d.puremagic.com/issues/show_bug.cgi?id=12065
yebblies <yebbl...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |yebbl...@gmail.com Platform|x86 |All OS/Version|Windows |All --- Comment #1 from yebblies <yebbl...@gmail.com> 2014-02-03 23:07:17 EST --- It's a bug, the compiler thinks that `const(Bar[])` could potentially produce a `char[]`. string func1(in char[] x) pure { char[] m = "".dup; return m; // works, can't get a char[] from const(char[]) without casting } enum Bar : char { A } string func2(in Bar[] x) pure { char[] m = "".dup; return m; // doesn't work, but should } -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------