https://issues.dlang.org/show_bug.cgi?id=13575 --- Comment #2 from Witold Baryluk <witold.baryluk+d at gmail.com> --- Ah, obviously I did forgot to mention that compiler does not warn about my first example. But it should. --