Issue 11689 - deprecated local function does not work

https://d.puremagic.com/issues/show_bug.cgi?id=11689

I found this trivial bug while working on https://github.com/D-Programming-Language/dlang.org/pull/429.