blob: 91b6a54b22783ea6b9e1ffb60bca3a5abb47aa43 [file] [log] [blame]
// RUN: %target-typecheck-verify-swift -typecheck %s -verify
// 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>()%%%
}