Bug 19765 – std.algorithm.searching.findAmong doesn't `save` like it should

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2019-03-26T19:42:02Z
Last change time
2019-03-27T13:09:00Z
Keywords
pull
Assigned to
No Owner
Creator
ag0aep6g

Comments

Comment #0 by ag0aep6g — 2019-03-26T19:42:02Z
import std.algorithm; import std.range; void main() { auto choices = inputRangeObject("b"); auto f = "foobar".findAmong(choices); assert(equal(f, "bar")); /* fails; should pass */ }
Comment #1 by dlang-bot — 2019-03-26T19:44:23Z
@aG0aep6G created dlang/phobos pull request #6934 "fix issue 19765 - std.algorithm.searching.findAmong doesn't `save` li…" fixing this issue: - fix issue 19765 - std.algorithm.searching.findAmong doesn't `save` like it should https://github.com/dlang/phobos/pull/6934
Comment #2 by dlang-bot — 2019-03-27T13:09:00Z
dlang/phobos pull request #6934 "fix issue 19765 - std.algorithm.searching.findAmong doesn't `save` li…" was merged into stable: - e1dbed97d8804d9c5618f2edbe9fa78802ca92d5 by aG0aep6G: fix issue 19765 - std.algorithm.searching.findAmong doesn't `save` like it should - 98068cebe7d9d7f25d7dcca30b4ff9e5ce54e10b by aG0aep6G: fixup! fix issue 19765 - std.algorithm.searching.findAmong doesn't `save` like it should https://github.com/dlang/phobos/pull/6934