// RUN: %target-swift-emit-silgen -verify %s protocol AP { associatedtype B: BP var b: B { get } } protocol BP {} func foo(x: A) -> A { func bar(x: B) { } func bas(x: B) { bar(x: x) } func bang() -> A { return x } func bong(_: A) {} let x = bang() bong(x) }