-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[Gardening] Switch an Out Parameter To a Tuple #27975
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@swift-ci please smoke test and merge |
lib/Sema/TypeCheckProtocol.cpp
Outdated
@@ -5404,7 +5400,8 @@ void TypeChecker::inferDefaultWitnesses(ProtocolDecl *proto) { | |||
|
|||
if (auto assocType = dyn_cast<AssociatedTypeDecl>(valueDecl)) { | |||
if (assocType->getOverriddenDecls().empty()) { | |||
if (Type defaultType = findAssociatedTypeDefault(assocType)) | |||
if (Type defaultType = | |||
std::get<0>(findAssociatedTypeDefault(assocType))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.first
for std::pair
specifically?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
d'oh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, thanks
Oh great, I caused a conflict. Guess I can fix this then. |
454dc4a
to
e303c0d
Compare
e303c0d
to
ff97519
Compare
Yay, no more captures @swift-ci please smoke test |
@swift-ci please smoke test Linux platform |
1 similar comment
@swift-ci please smoke test Linux platform |
⛵️ |
Just a little touch-up while I'm here.