compiler: don't look at unit and namespace symbols from other units while searching for a type (issue #25054) git-svn-id: trunk@25536 -