Revert "[Type checker] Be more rigorous about extracting argument labels from calls."

This reverts commit 3753d779bc. It's
causing some type-inference problems I need to investigate.
This commit is contained in:
Doug Gregor
2016-06-03 10:07:16 -07:00
parent 2e7ae3da2e
commit ee85891d11
12 changed files with 112 additions and 157 deletions

View File

@@ -2612,8 +2612,8 @@ getArgumentLabels(ConstraintSystem &cs, ConstraintLocatorBuilder locator) {
if (!parts.empty())
return None;
auto known = cs.CalleeArgumentLabels.find(cs.getConstraintLocator(anchor));
if (known == cs.CalleeArgumentLabels.end())
auto known = cs.ArgumentLabels.find(cs.getConstraintLocator(anchor));
if (known == cs.ArgumentLabels.end())
return None;
return known->second;