Revert "avoid wildcard resolution if we specify enclosing_resources"

This reverts commit e0059bdf9cf138ce92c267993b4524eb3798748d.