Bug 14076 – Partial type deduction doesn't work with lambdas

Status
RESOLVED
Resolution
INVALID
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-01-29T13:45:00Z
Last change time
2015-02-03T12:31:59Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
k.hara.pg

Comments

Comment #0 by k.hara.pg — 2015-01-29T13:45:53Z
Test case: immutable pure @safe bool function(in bool[])[2] a481_19x = [ s => s[0], s => s[0] ]; immutable pure @safe bool function(in bool[])[$] a481_19y = // doesn't work [ s => s[0], s => s[0] ]; static assert(is(typeof(a481_19x) == typeof(a481_19y)));
Comment #1 by k.hara.pg — 2015-01-29T13:47:22Z
Comment #2 by k.hara.pg — 2015-02-03T12:31:59Z
The feature was reverted from master branch. So I close this issue.