blob: 5962726dfb081159b8b077742906a3f93b88b15e [file] [log] [blame]
// 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) }
}