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
OS X El Capitan 10.11.6
Xcode 7.3.1 (7D1014), Xcode 8.0 beta 6 (8S201h)
Additional Detail from JIRA
Votes
0
Component/s
Compiler
Labels
Bug
Assignee
None
Priority
Medium
md5: d520c00c1d1d977797179e8de1d74272
duplicates:
SR-2336 Ternary operator with optionals results in lousy diagnostic
Issue Description:
The following code does not compile:
lettuples1: [(Int, Int)?]
tuples1 = [ // Swift 2.2: error: use of '=' in a boolean context, did you mean '=='?true ? (1, 2) : nil// Swift 3: 'Int1' is not convertible to 'Bool'
]
lettuples11: [(Int, Int)?]?
tuples11 = [ // 'Int1' is not convertible to 'Bool'true ? (1, 2) : nil
]
lettuples12: [(Int, Int)?]? = [ // 'Int1' is not convertible to 'Bool'true ? (1, 2) : nil
]
Environment
OS X El Capitan 10.11.6
Xcode 7.3.1 (7D1014), Xcode 8.0 beta 6 (8S201h)
Additional Detail from JIRA
md5: d520c00c1d1d977797179e8de1d74272
duplicates:
Issue Description:
The following code does not compile:
The following code compiles fine:
If we don't use tuples, there are no problems:
The text was updated successfully, but these errors were encountered: