aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t5041.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pos/t5041.scala')
-rw-r--r--tests/pos/t5041.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/pos/t5041.scala b/tests/pos/t5041.scala
new file mode 100644
index 000000000..78a1b27d5
--- /dev/null
+++ b/tests/pos/t5041.scala
@@ -0,0 +1,9 @@
+case class Token(text: String, startIndex: Int)
+
+object Comment {
+ def unapply(s: String): Option[Token] = None
+}
+
+object HiddenTokens {
+ "foo" match { case Comment(_) => }
+}