D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 7207 - Explicit cast should resolve lambda type
Summary: Explicit cast should resolve lambda type
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: Other Linux
: P2 normal
Assignee: No Owner
URL:
Keywords: patch, rejects-valid
Depends on:
Blocks:
 
Reported: 2012-01-02 21:48 UTC by timon.gehr
Modified: 2012-01-03 14:48 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description timon.gehr 2012-01-02 21:48:52 UTC
Tested with DMD 2.058head.

auto dg = cast(int function(int))(a)=>a;

Error: cannot cast __lambda2

The code should compile.