http://d.puremagic.com/issues/show_bug.cgi?id=3067
Summary: std.range.chain returns a range of wrong type elements Product: D Version: 2.030 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nob...@puremagic.com ReportedBy: rayerd....@gmail.com import std.stdio; import std.algorithm; import std.range; void main() { f(chain("a")); // immutable(char) <- OK f(chain("a".dup)); // char <-------- ? f(chain("a".dup, "b")); // int <---- NG } void f(Range)(Range r) { writeln(typeid(ElementType!(Range))); } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------