Skip to content

Commit c2ca0ac

Browse files
committed
Sema: Remove a call to setInvalid() that was messing up code completion results
setInvalid() sets the interface type of the declaration to ErrorType. We should remove it eventually.
1 parent 34ce74a commit c2ca0ac

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Diff for: lib/Sema/TypeCheckProtocol.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -3376,8 +3376,6 @@ void ConformanceChecker::recordTypeWitness(AssociatedTypeDecl *assocType,
33763376

33773377
aliasDecl->setImplicit();
33783378
aliasDecl->setSynthesized();
3379-
if (type->hasError())
3380-
aliasDecl->setInvalid();
33813379

33823380
// Inject the typealias into the nominal decl that conforms to the protocol.
33833381
if (auto nominal = DC->getSelfNominalTypeDecl()) {

0 commit comments

Comments
 (0)