// RUN: %target-swift-frontend %s -emit-ir // https://github.com/apple/swift/issues/45400 protocol ViewModel {} protocol ViewModelCell {} protocol CellAwareViewModel : ViewModel { associatedtype CellType: ViewModelCell } protocol ConfigurableViewModelCell : ViewModelCell { associatedtype DataType: CellAwareViewModel } func useType(cellType: T.Type) { } class ConfigurableViewModelCellProvider where V: CellAwareViewModel, C: ConfigurableViewModelCell, C.DataType == V, V.CellType == C { static func crasher() { // IRGen for the metatype instruction useType(cellType: C.self) } }