Issue 12186 - Problems with partially inferred type for immutable lambda argument

https://d.puremagic.com/issues/show_bug.cgi?id=12186