Issue 9231 - overriding inout funcion with attribute inference reports weird error

http://d.puremagic.com/issues/show_bug.cgi?id=9231

I found this bug while writing a [druntime pull #359](https://github.com/D-Programming-Language/druntime/pull/359).