www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9415] New: delegate inference should make function literal impure

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9415

           Summary: delegate inference should make function literal impure
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: k.hara.pg gmail.com


--- Comment #0 from Kenji Hara <k.hara.pg gmail.com> 2013-01-28 04:33:32 PST ---
From: http://forum.dlang.org/thread/aldgsmoserwuvtfxzajn forum.dlang.org

This code should work, but doesn't.

void main() {
    int z;
    typeof((int a){return z;}) dg;
    dg = (int a){return z;};
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 28 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9415


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull


--- Comment #1 from Kenji Hara <k.hara.pg gmail.com> 2013-01-28 04:49:58 PST ---
https://github.com/D-Programming-Language/dmd/pull/1572

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 28 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9415



--- Comment #2 from github-bugzilla puremagic.com 2013-03-03 14:41:38 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/87ae665a998286324fbee138629b8ff782108eb2
fix Issue 9415 - delegate inference should make function literal impure

https://github.com/D-Programming-Language/dmd/commit/a5ab2c3c4a63288c83226e891d7a6200b2883a09
Merge pull request #1572 from 9rnsr/fix9415

Issue 9415 - delegate inference should make function literal impure

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 03 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9415


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: -------
Mar 03 2013