Resolve names in return statement