Skip to content

Conversation

@xedin
Copy link
Contributor

@xedin xedin commented Aug 4, 2025

return statement withot an expression automatically gets an implicit () which is allowed to be converted to types like ()? and Any or Any?. Let's remove a too strict assertion that expected a contextual type to always be ()? even through in reality any type that () is convertible to is valid.

Resolves: rdar://152553143

`return` statement withot an expression automatically gets an
implicit `()` which is allowed to be converted to types like
`()?` and `Any` or `Any?`. Let's remove a too strict assertion
that expected a contextual type to always be `()?` even
through in reality any type that `()` is convertible to is valid.

Resolves: rdar://152553143
@xedin xedin requested a review from hamishknight August 4, 2025 07:21
@xedin xedin requested a review from hborla as a code owner August 4, 2025 07:21
@xedin
Copy link
Contributor Author

xedin commented Aug 4, 2025

@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented Aug 4, 2025

@swift-ci please test Linux platform

@xedin xedin merged commit 7d75f71 into swiftlang:main Aug 4, 2025
5 checks passed
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