Bug 13180 – [REG2.066a] AA get returns const(char[]) instead of string

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-07-21T22:45:00Z
Last change time
2014-08-22T08:04:53Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
dlang-bugzilla

Comments

Comment #0 by dlang-bugzilla — 2014-07-21T22:45:17Z
///////////// 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
Comment #1 by k.hara.pg — 2014-07-23T08:27:34Z
Comment #2 by github-bugzilla — 2014-07-23T10:59:17Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/31d3eb7f191a6549d45e9e2f67afd82c22cd7399 fix Issue 13180 - AA get returns const(char[]) instead of string https://github.com/D-Programming-Language/dmd/commit/a85f5d7aa43066e10db306f528c378786744e909 Merge pull request #3801 from 9rnsr/fix13180 [REG2.066a] Issue 13180 - AA get returns const(char[]) instead of string
Comment #3 by github-bugzilla — 2014-07-23T15:35:41Z
Commit pushed to 2.066 at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/b5befe0c19e3c09402358df0e2f71da64b0d7f6c Merge pull request #3801 from 9rnsr/fix13180 [REG2.066a] Issue 13180 - AA get returns const(char[]) instead of string
Comment #4 by github-bugzilla — 2014-08-22T08:04:53Z