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
The following code complains that x is used by a closure before being initialized, instead of more accurately complaining that it's optional-chained (or just generically that it's used):
letx: String?
if [1,2,3].contains(2) {
x = "lala"
}
// else {// x = nil// }print(x)
print(x?.characters.count)
The text was updated successfully, but these errors were encountered:
Additional Detail from JIRA
md5: baeea16bd3d67c1a509c4f3789ecf120
Issue Description:
The following code complains that x is used by a closure before being initialized, instead of more accurately complaining that it's optional-chained (or just generically that it's used):
The text was updated successfully, but these errors were encountered: