Issue 11497 - lambda in "static if"/"assert" prevent inlining of function

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