Files
swift-mirror/validation-test/compiler_crashers_2_fixed/0065-sr3706.swift
Slava Pestov 8ad5504fe0 SILGen: Relax assertion in tuple-to-optional function result conversion
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>.
2017-01-24 18:47:21 -08:00

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)
})