blob: 6a459f881459aae13cc32214af342e7095daa8b0 [file] [log] [blame]
// RUN: %target-swift-frontend -emit-sil -verify %s | %FileCheck %s
class S {}
let arr: [(S, Int)] = []
let _: [S] = arr.sorted {
$0.1 < $1.1
// CHECK: function_ref @$sSlsE6prefixy11SubSequenceQzSiF : $@convention(method) <τ_0_0 where τ_0_0 : Collection> (Int, @in_guaranteed τ_0_0) -> @out τ_0_0.SubSequence
}.prefix(1).map {
return $0.0
}