mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Now that optional payloads can be re-abstracted, there's a case where we need to do a tuple-to-tuple conversion on a direct result; if the result is wrapped in an Optional. So I believe this assert is not right. Fixes <https://bugs.swift.org/browse/SR-3706>.
7 lines
183 B
Swift
7 lines
183 B
Swift
// RUN: %target-swift-frontend %s -emit-ir
|
|
|
|
let occurrences: [String] = []
|
|
let results: [(String, Int)] = occurrences.flatMap({ (match: String) -> (String, Int) in
|
|
return ("", 0)
|
|
})
|