Skip to content

Conversation

@xedin
Copy link
Contributor

@xedin xedin commented Nov 14, 2025

…r conforms to ExpressibleBy{Array, Dictionary}Literal

  • Explanation:

    The existing check is no-op because it would never produce a null for paramType under the conditions in else branch. A better API it use here is conformsToKnownProtocol just like in other cases.

  • Main Branch PR: [CSOptimizer] Use conformsToKnownProtocol to check whether paramete… #85460

  • Risk: Low. Affects only literal array/dictionary arguments when there is at least one other "concrete" argument in the same call.

  • Reviewed By: @slavapestov

  • Testing: Added new test-cases to the suite.

(cherry picked from commit 62a9178)

…r conforms to `ExpressibleBy{Array, Dictionary}Literal`

The existing check is no-op because it would never produce a null for
`paramType` under the conditions in `else` branch. A better
API it use here is `conformsToKnownProtocol` just like in other cases.

(cherry picked from commit 62a9178)
@xedin xedin requested a review from a team as a code owner November 14, 2025 17:42
@xedin xedin requested a review from hborla November 14, 2025 17:42
@xedin xedin changed the title [CSOptimizer] Use conformsToKnownProtocol to check whether paramete… [6.3][CSOptimizer] Use conformsToKnownProtocol to check whether paramete… Nov 14, 2025
@xedin xedin added swift 6.3 🍒 release cherry pick Flag: Release branch cherry picks labels Nov 14, 2025
@xedin
Copy link
Contributor Author

xedin commented Nov 14, 2025

@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented Nov 14, 2025

@swift-ci please test Linux platform

@xedin
Copy link
Contributor Author

xedin commented Nov 14, 2025

@swift-ci please test Windows platform

@xedin
Copy link
Contributor Author

xedin commented Nov 15, 2025

@swift-ci please test Linux platform

@xedin
Copy link
Contributor Author

xedin commented Nov 18, 2025

@swift-ci please smoke test

@xedin
Copy link
Contributor Author

xedin commented Nov 19, 2025

@swift-ci please smoke test Windows platform

@xedin xedin merged commit aa0fa9e into swiftlang:release/6.3 Nov 19, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🍒 release cherry pick Flag: Release branch cherry picks swift 6.3

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants