Skip to content

Conversation

@gottesmm
Copy link
Contributor

Didn't need to modify any tests since this shouldn't have any functional change. Just a slight cleanup.

Didn't need to modify any tests since this shouldn't have any functional
change. Just a slight cleanup.
@gottesmm gottesmm requested review from hborla and xedin as code owners June 20, 2024 03:04
@gottesmm
Copy link
Contributor Author

@xedin as per your request.

@gottesmm
Copy link
Contributor Author

@swift-ci smoke test

@gottesmm
Copy link
Contributor Author

@swift-ci test windows platform

emitDiagnosticAt(getLoc(), diag::sending_function_wrong_sending,
getFromType(), getToType())
bool SendingMismatchFailure::diagnoseAsError() {
if (getLocator()->getLastElementAs<LocatorPathElt::FunctionArgument>())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: can use isLastElement instead of getLastElementAs.

#include "swift/AST/Type.h"
#include "swift/AST/Types.h"
#include "swift/Basic/Debug.h"
#include "swift/Sema/Constraint.h"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this include?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Surprisingly.

@gottesmm gottesmm merged commit 56cb980 into swiftlang:main Jun 25, 2024
@gottesmm gottesmm deleted the pr-9be87019f95149167c2e03043b7a86b82f9d282c branch June 25, 2024 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants