mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
10 lines
169 B
Swift
10 lines
169 B
Swift
// RUN: %target-typecheck-verify-swift
|
|
|
|
protocol P {
|
|
func b(i: @escaping (inout Int) -> Double)
|
|
}
|
|
|
|
func foo<T: P>(_ bar: T) {
|
|
bar.b { a in Double((a, a += 1).0) }
|
|
}
|