From cb5daf3a5d9ab8195746e21801c3300d78efb52c Mon Sep 17 00:00:00 2001 From: Som Snytt Date: Sat, 20 Feb 2016 22:51:12 -0800 Subject: SI-9665 Backquoted vbar in extractor pattern Allow an infix extractor named `|`, when backquoted. --- test/files/pos/t9665.scala | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/files/pos/t9665.scala (limited to 'test') 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 => } +} -- cgit v1.2.3