aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg/t7984.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/neg/t7984.scala')
-rw-r--r--tests/untried/neg/t7984.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/untried/neg/t7984.scala b/tests/untried/neg/t7984.scala
new file mode 100644
index 000000000..ca09a89fc
--- /dev/null
+++ b/tests/untried/neg/t7984.scala
@@ -0,0 +1,7 @@
+class Test {
+ type ListInt = List[Int]
+ List[Any]("") match {
+ case is: ListInt => is.head
+ case _ =>
+ }
+}