← Back to index
|
Original Bugzilla link
Bug 13807 – [REG2.067a] inout(T)[] no longer matches string[]
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-12-02T11:25:00Z
Last change time
2015-02-18T03:40:48Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
dlang-bugzilla
Comments
Comment #0
by dlang-bugzilla — 2014-12-02T11:25:48Z
/////////////////// test.d ////////////////// inout(T) sample(T)(inout(T)[] arr) { return arr[0]; } void main() { auto n = sample([7, 7, 7]); // OK auto s = sample(["foo", "bar"]); // Error } ///////////////////////////////////////////// test.d(9): Error: template test.sample cannot deduce function from argument types !()(string[]), candidates are: test.d(1): test.sample(T)(inout(T)[] arr) Introduced in
https://github.com/D-Programming-Language/dmd/pull/3896
Comment #1
by k.hara.pg — 2014-12-05T07:56:07Z
https://github.com/D-Programming-Language/dmd/pull/4190
Comment #2
by github-bugzilla — 2014-12-05T09:26:39Z
Commits pushed to master at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/f9e27712c788d5f04ab7b9af72c2efa77b38a60a
fix Issue 13807 - inout(T)[] no longer matches string[]
https://github.com/D-Programming-Language/dmd/commit/1ec47348865b197236af78f5e7604ac473cc440f
Merge pull request #4190 from 9rnsr/fix13807 [REG2.067a] Issue 13807 - inout(T)[] no longer matches string[]
Comment #3
by github-bugzilla — 2015-02-18T03:40:48Z
Commits pushed to 2.067 at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/f9e27712c788d5f04ab7b9af72c2efa77b38a60a
fix Issue 13807 - inout(T)[] no longer matches string[]
https://github.com/D-Programming-Language/dmd/commit/1ec47348865b197236af78f5e7604ac473cc440f
Merge pull request #4190 from 9rnsr/fix13807