blob: f9eb62ce06fd889d1e4b62ae8d3390336ab82d81 [file] [log] [blame]
// RUN: not %target-swift-frontend %s -typecheck
infix operator ~> : BitwiseShiftPrecedence
struct F {}
protocol P {
associatedtype R
func X() -> R
static func ~> (: Self, _: F) -> R
}
func ~> <T:P> (: T, _: F) -> T.R {
return X()
}