Bug 9415 – delegate inference should make function literal impure

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-01-28T04:33:00Z
Last change time
2013-03-03T15:02:55Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
k.hara.pg

Comments

Comment #0 by k.hara.pg — 2013-01-28T04:33:32Z
From: http://forum.dlang.org/thread/[email protected] This code should work, but doesn't. void main() { int z; typeof((int a){return z;}) dg; dg = (int a){return z;}; }
Comment #1 by k.hara.pg — 2013-01-28T04:49:58Z
Comment #2 by github-bugzilla — 2013-03-03T14:41:38Z
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