You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you compile the following code, a?.bar() has a return value of Void?. This doesn't result in an unused result warning when the statement is used on its own, but if used inside the ternary the warning Expression of type '()?' is unused shows up.
structFoo {
funcbar() {}
}
leta: Foo? = nilletb = trueb ? nil : a?.bar() // Expression of type '()?' is unused
The text was updated successfully, but these errors were encountered:
Environment
Swift 3.0 shipped with Xcode 8.0 beta (8S128d)
Additional Detail from JIRA
md5: 0cedd5ebc37b5c0a569c425bf163b8a6
relates to:
Issue Description:
If you compile the following code,
a?.bar()
has a return value ofVoid?
. This doesn't result in an unused result warning when the statement is used on its own, but if used inside the ternary the warningExpression of type '()?' is unused
shows up.The text was updated successfully, but these errors were encountered: