Thread overview
[Issue 7207] New: Explicit cast should resolve lambda type
Jan 03, 2012
timon.gehr@gmx.ch
Jan 03, 2012
Kenji Hara
Jan 03, 2012
Walter Bright
January 03, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7207

           Summary: Explicit cast should resolve lambda type
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: timon.gehr@gmx.ch


--- Comment #0 from timon.gehr@gmx.ch 2012-01-02 21:48:52 PST ---
Tested with DMD 2.058head.

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

Error: cannot cast __lambda2

The code should compile.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 03, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7207


Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch, rejects-valid


--- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2012-01-02 22:53:39 PST ---
https://github.com/D-Programming-Language/dmd/pull/593

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 03, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7207


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla@digitalmars.com
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------