summaryrefslogtreecommitdiff
path: root/test/files/pos/t8861.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/t8861.scala')
-rw-r--r--test/files/pos/t8861.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/pos/t8861.scala b/test/files/pos/t8861.scala
new file mode 100644
index 0000000000..816d15700e
--- /dev/null
+++ b/test/files/pos/t8861.scala
@@ -0,0 +1,11 @@
+
+trait Test {
+ type R = PartialFunction[Any, Unit]
+
+ val x: R = { case "" => }
+ val y: R = { case "" => }
+
+ val z: R = x orElse y
+ val zz = x orElse y
+}
+