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
Copy file name to clipboardExpand all lines: test/Constraints/optional.swift
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -509,3 +509,6 @@ func rdar85166519() {
509
509
v?.addingReportingOverflow(0) // expected-error {{cannot convert value of type '(partialValue: Int, overflow: Bool)?' to expected dictionary key type 'Int'}}
510
510
]
511
511
}
512
+
513
+
// https://github.com/apple/swift/issues/58539
514
+
iflet x =nil{} // expected-error{{'nil' requires a contextual type}}
0 commit comments