Open
Description
Description
I get unexpected error: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the project
when compiling following code.
Steps to reproduce
Compile following code:
for i in [Int64.min, Int32.min] + (0...10) { continue }
Expected behavior
The code should compile or proper error should be printed. Note this compiles just fine:
for i in [Int64.min, Int32.min] { continue }
for i in [Int64.min] + (0...10) { continue }
Environment
swift-driver version: 1.62.15 Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51)
Target: x86_64-apple-macosx13.0