fix Issue 9415 - delegate inference should make function literal impure
Merge pull request #1572 from 9rnsr/fix9415

Issue 9415 - delegate inference should make function literal impure