summaryrefslogtreecommitdiff
path: root/test/files/run/t4025.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t4025.scala')
-rw-r--r--test/files/run/t4025.scala12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/files/run/t4025.scala b/test/files/run/t4025.scala
new file mode 100644
index 0000000000..5db0093970
--- /dev/null
+++ b/test/files/run/t4025.scala
@@ -0,0 +1,12 @@
+import scala.tools.nsc.Settings
+import scala.tools.partest.ReplTest
+
+object Test extends ReplTest {
+ def code = """
+class Color(val red: Int)
+
+case class Red(r:Int) extends Color(r)
+
+def f(c: Any) = c match { case Red(_) => () }
+"""
+}