Skip to content

Commit d1c8f1e

Browse files
committed
Avoid patern match on erased type warining
1 parent f1940ee commit d1c8f1e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/src/dotty/tools/repl/terminal/Utils.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ object FrontEndUtils {
178178
def transpose[A](xs: List[List[A]]): List[List[A]] = {
179179
@tailrec def transpose(xs: List[List[A]], result: List[List[A]]): List[List[A]] = {
180180
xs.filter(_.nonEmpty) match {
181-
case Nil => result
182-
case ys: List[List[A]] => transpose(ys.map(_.tail), ys.map(_.head) :: result)
181+
case Nil => result
182+
case ys => transpose(ys.map(_.tail), ys.map(_.head) :: result)
183183
}
184184
}
185185

0 commit comments

Comments
 (0)