Avatar
Avatar
Taketo Sano
protocol Ring {} protocol MatrixImpl { associatedtype BaseRing: Ring } struct DefaultMatrixImpl<A: Ring>: MatrixImpl { typealias BaseRing = A } struct Matrix<A, B: MatrixImpl> where B.BaseRing == A {} extension Matrix where B == DefaultMatrixImpl<A> {} // Redundant conformance constraint 'B': 'MatrixImpl' <- huh? 最後の extension で redundant だと警告が出るんですが,警告が間違ってますよね? (edited)
Swift5.5のβだと特に警告は出ていません