Files
swift-mirror/test/Constraints/if_expr.swift
Robert Widmann 26b53a5e63 Look through IUOs when converting the scrutiny of if-exprs
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.
2017-01-05 03:08:06 -07:00

2.1 KiB