Always show error message when type resolver produces ambiguous type. Fixes #16115