mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
18 lines
294 B
Swift
18 lines
294 B
Swift
// RUN: %target-typecheck-verify-swift
|
|
|
|
// rdar://problem/35480952
|
|
|
|
postfix operator %%%
|
|
protocol P {
|
|
static postfix func %%%(lhs: Self)
|
|
}
|
|
protocol Q {}
|
|
struct Foo<T> {}
|
|
extension Foo: P where T : Q {
|
|
static postfix func %%%(lhs: Foo<T>) {}
|
|
}
|
|
|
|
func useIt<T: Q>(_: T.Type) {
|
|
Foo<T>()%%%
|
|
}
|