From cd92aad821eb476f68ea85fb9b149ee185a08e97 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Wed, 6 Oct 2010 22:56:56 +0000 Subject: Unreverting r23174. No review. --- test/files/run/t3887.scala | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test/files/run/t3887.scala (limited to 'test/files/run/t3887.scala') diff --git a/test/files/run/t3887.scala b/test/files/run/t3887.scala new file mode 100644 index 0000000000..16ce983efc --- /dev/null +++ b/test/files/run/t3887.scala @@ -0,0 +1,16 @@ +object Test { + def main(args: Array[String]) { + assert( matchPair(1) ) + assert( !matchPair(2) ) + } + + def matchPair(i: Int) = { + (i, "abc") match { + case this.option1 => true + case _ => false + } + } + + val option1: (Int, String) = (1, "abc") + +} -- cgit v1.2.3