https://issues.dlang.org/show_bug.cgi?id=6936
Jonathan M Davis <jmdavisp...@gmx.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jmdavisp...@gmx.com --- Comment #2 from Jonathan M Davis <jmdavisp...@gmx.com> --- (In reply to hsteoh from comment #1) > Isn't this more a problem with type inference in the ternary '?' operator? Yes. The ternary operator currently, incorrectly uses the type of its last argument rather than the common type of the second and third arguments. It's essentially the same bug as issue# 3543, but this is with arrays, whereas 3543 specifically talks about classes and interfaces, so I'm not sure if it's actually a duplicate. --