mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
12 lines
169 B
Swift
12 lines
169 B
Swift
public protocol P {
|
|
func f()
|
|
}
|
|
|
|
public struct G<each T>: P {
|
|
public func f() {}
|
|
}
|
|
|
|
public func callee<each T>(_: repeat each T) -> some P {
|
|
G<repeat each T>()
|
|
}
|