mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Previously this would cause strange diagnostics to be emitted when values of type Bool! were the subject of if-expression conditions. var isBoolean: Bool! = false let conditional = isBoolean ? "Broken" : "Heart" // ^ type 'Bool' is broken Instead, look through IOUs before performing the member access to cover our bases here.
2.1 KiB
2.1 KiB