blob: 8b5a57990c06c9a56cfbc019ce9e115df17d4787 [file] [log] [blame]
protocol P {
}
protocol Q : P {
static var x: Int { get set }
}
extension P {
static var x: Int { get { return 0 } set { } }
}
func foo(inout x: Int) {}
struct S : Q {}
func f() {
foo(&S.x)
}