Skip to content

Commit 13cc0d0

Browse files
authored
Merge pull request #20073 from rudkx/join-to-nowhere
[TypeJoin] Return Unimplemented (aka Type()) for things we cannot yet…
2 parents c4a4b0d + a22247b commit 13cc0d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/AST/TypeJoinMeet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ CanType TypeJoin::visitProtocolCompositionType(CanType second) {
397397

398398
// FIXME: Handle other types here.
399399
if (!First->isExistentialType())
400-
return TheAnyType;
400+
return Unimplemented;
401401

402402
SmallVector<Type, 1> protocolType;
403403
ArrayRef<Type> firstMembers;

0 commit comments

Comments
 (0)