You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sealedtraitTransformation[T]
caseobjectCountextendsTransformation[Int]
caseclassMultiTransformation[T1<:Transformation[?], T2<:Transformation[?]](t1: T1, t2: T2)
extendsTransformation[MultiTransformationResult[T1, T2]]
typeMultiTransformationResult[T1<:Transformation[?], T2<:Transformation[?]] <:Tuple= (T1, T2) match {
case (Transformation[t], MultiTransformation[t1, t2]) => t *:MultiTransformationResult[t1, t2]
case (Transformation[t1], Transformation[t2]) => (t1, t2)
}
Output
children of traitTransformation were already queried before classMultiTransformation was discovered.
As a remedy, you could move classMultiTransformation on the same nesting level astraitTransformation.
Expectation
The code should either compile or the compiler should display a valid error message. In this case the error message is misleading as both trait and class already are on the same nesting level.