summaryrefslogtreecommitdiff
path: root/test/files/pos/t9665.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/t9665.scala')
-rw-r--r--test/files/pos/t9665.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/pos/t9665.scala b/test/files/pos/t9665.scala
new file mode 100644
index 0000000000..1aa7a5d459
--- /dev/null
+++ b/test/files/pos/t9665.scala
@@ -0,0 +1,7 @@
+
+object | { def unapply(x: (Any, Any)) = Some(x) }
+
+trait Test {
+ def f() = (1,2) match { case 1 `|` 2 => }
+ def g() = 2 match { case 1 | 2 => }
+}