Skip to content

Commit 911a818

Browse files
committed
Add test
1 parent fca6688 commit 911a818

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/patmat/t11620b.scala

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
sealed abstract class Length
2+
3+
object Length {
4+
case class Num(n: Int) extends Length
5+
case object StateColumn extends Length
6+
}
7+
8+
import Length._
9+
10+
case class Indent[T <: Length](length: T)
11+
12+
def withIndent[T <: Length](indent: => Indent[_]): Unit =
13+
indent match {
14+
case Indent(Num(0)) => println("this")
15+
case x => println(x) // "unreachable"
16+
}

0 commit comments

Comments
 (0)