Issue 11872 - Support for overloaded template functions in with block

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