From e727001ef3b63e7ff2bd521e33fc363e349b2ac0 Mon Sep 17 00:00:00 2001 From: Jason Zaugg Date: Sat, 26 May 2012 13:19:43 +0200 Subject: Test case closes SI-5041. --- test/files/pos/t5041.scala | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/files/pos/t5041.scala (limited to 'test/files') diff --git a/test/files/pos/t5041.scala b/test/files/pos/t5041.scala new file mode 100644 index 0000000000..78a1b27d5a --- /dev/null +++ b/test/files/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(_) => } +} -- cgit v1.2.3