Bug 7207 – Explicit cast should resolve lambda type

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Linux
Creation time
2012-01-02T21:48:00Z
Last change time
2012-01-03T14:48:22Z
Keywords
patch, rejects-valid
Assigned to
nobody
Creator
timon.gehr

Comments

Comment #0 by timon.gehr — 2012-01-02T21:48:52Z
Tested with DMD 2.058head. auto dg = cast(int function(int))(a)=>a; Error: cannot cast __lambda2 The code should compile.
Comment #1 by k.hara.pg — 2012-01-02T22:53:39Z