Files
swift-mirror/test/SILGen/sibling-nested-generic.swift
Michael Gottesman 9e13779702 [ownership] Remove most -enable-sil-ownership from SILGen now that %target-swift-emit-silgen does it automatically.
I did this using a sed pattern and verified by hand that I was only touching
target-swift-emit-silgen lines.
2018-12-13 11:54:54 -08:00

22 lines
307 B
Swift

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