blob: 83f9514de704a1e1ad1969d03a1d3e4fcb858e3d [file] [log] [blame]
// RUN: %target-swift-frontend -emit-ir -primary-file %s
class UITableViewCell {}
class UITableView {}
extension UITableViewCell: ReusableViewProtocol {
public typealias ParentView = UITableView
}
protocol ReusableViewProtocol {
associatedtype ParentView
}
protocol ReusableViewFactoryProtocol {
associatedtype View: ReusableViewProtocol
func configure(parentView: View.ParentView)
}
extension ReusableViewFactoryProtocol where View: UITableViewCell {
func tableCellFor(tableView: UITableView) {
configure(parentView: tableView)
}
}