Issue 6905 - ref acts as auto ref when return type is missing

http://d.puremagic.com/issues/show_bug.cgi?id=6905