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
(tp.tp1.namedTupleElementTypesUpTo(bound -1, normalize), tp.tp2.namedTupleElementTypesUpTo(bound -1, normalize)) match
147
-
case (Nil, rhs) => rhs
148
-
case (lhs, Nil) => lhs
149
-
case (lhs, rhs) =>
150
-
if (lhs.map(_._1) != rhs.map(_._1)) throwTypeError(em"Malformed Intersection Type: Named Tuple elements must be the same, but $lhs and $rhs were found.")
// def foo[T <: (x: Int, y: String)](tup: T): Int = // TODO 3: this fails with similar error to https://github.com/scala/scala3/issues/22324 not sure if related?
0 commit comments