Files
swift-mirror/test/Constraints/rdar39931475.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) }
}