https://issues.dlang.org/show_bug.cgi?id=13180
Issue ID: 13180 Summary: [REG2.066a] AA get returns const(char[]) instead of string Product: D Version: D2 Hardware: All OS: All Status: NEW Keywords: rejects-valid Severity: regression Priority: P1 Component: DMD Assignee: nob...@puremagic.com Reporter: thecybersha...@gmail.com ///////////// test.d ///////////// void main() { string def; string[string] aa; string s = aa.get("foo", def); } ////////////////////////////////// test.d(5,19): Error: cannot implicitly convert expression (get(aa, "foo", delegate const(char[])() => def)) of type const(char[]) to string Introduced in https://github.com/D-Programming-Language/dmd/pull/3763 --