Skip to content

Commit 2b6d24e

Browse files
committed
[ConstraintSystem] NFC: Slightly clarify comment about existence static members on a protocol metatype
1 parent e548366 commit 2b6d24e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Sema/CSSimplify.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6757,7 +6757,8 @@ performMemberLookup(ConstraintKind constraintKind, DeclNameRef memberName,
67576757
hasStaticMembers = true;
67586758
} else if (instanceTy->isExistentialType()) {
67596759
// A protocol metatype has instance methods with type P -> T -> U, but
6760-
// not instance properties or static members -- the metatype value itself
6760+
// not instance properties or static members, unless result type of a
6761+
// member conforms to this protocol -- the metatype value itself
67616762
// doesn't give us a witness so there's no static method to bind.
67626763
hasInstanceMethods = true;
67636764
hasStaticMembers = true;

0 commit comments

Comments
 (0)