Bug 7250 – [UFCS] UFCS chaining doesn't work

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2012-01-08T18:55:00Z
Last change time
2012-03-19T11:56:55Z
Assigned to
nobody
Creator
dsimcha

Comments

Comment #0 by dsimcha — 2012-01-08T18:55:59Z
import std.algorithm, std.array; void main() { auto arr = [1, 2, 3, 4, 5]; int toAdd = 42; auto arr2 = arr.map!(a => a + toAdd)().array(); } test.d(6): Error: no property 'array' for type 'Result'
Comment #1 by eco — 2012-03-19T11:19:17Z
I've tested and this works fine in 2.059 HEAD as of today. It should be closed (I'm not sure of the protocol who closes issues or I'd just close it myself).
Comment #2 by bearophile_hugs — 2012-03-19T11:56:55Z
This is now working. It's currently working even too much well (see Bug 7722 that already has a patch).