mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
`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
46 KiB
46 KiB