Remove the notion of 'unresolved' types entirely.

Unresolved types are a holdover from the old type checker that not
longer have any purpose in the type system.


Swift SVN r6242
This commit is contained in:
Doug Gregor
2013-07-13 05:27:22 +00:00
parent d42e385371
commit cf9b8a302e
9 changed files with 33 additions and 93 deletions

View File

@@ -71,7 +71,7 @@ inline TwoChars checkSourceRangeType(SourceRange (Pattern::*)() const);
void Pattern::setType(Type ty) {
assert(!hasType() || getType()->isUnresolvedType() ||
assert(!hasType() ||
ty->is<ErrorType>() ||
ty->getWithoutDefaultArgs(ty->getASTContext())->isEqual(
Ty->getWithoutDefaultArgs(Ty->getASTContext())));