fix Issue 9914 - Do attribute inference for auto functions

Auto functions must have a function body - therefore we can do attribute inference on them.

http://d.puremagic.com/issues/show_bug.cgi?id=9914