mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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:
@@ -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())));
|
||||
|
||||
Reference in New Issue
Block a user