We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fca6688 commit 911a818Copy full SHA for 911a818
tests/patmat/t11620b.scala
@@ -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