[Issue 13180] New: [REG2.066a] AA get returns const(char[]) instead of string
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon Jul 21 15:45:17 PDT 2014
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: nobody at puremagic.com
Reporter: thecybershadow at 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
--
More information about the Digitalmars-d-bugs
mailing list