summaryrefslogtreecommitdiff
path: root/test/files/pos/t873.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/t873.scala')
-rw-r--r--test/files/pos/t873.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/pos/t873.scala b/test/files/pos/t873.scala
new file mode 100644
index 0000000000..b8c50afd35
--- /dev/null
+++ b/test/files/pos/t873.scala
@@ -0,0 +1,10 @@
+abstract class Foo {
+
+ val x:Option[List[String]]
+ val y:List[Int]
+
+ val z = (0:Any) match {
+ case 1 => x
+ case 2 => y
+ }
+}