diff options
author | Paul Phillips <paulp@improving.org> | 2010-10-06 22:56:56 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-10-06 22:56:56 +0000 |
commit | cd92aad821eb476f68ea85fb9b149ee185a08e97 (patch) | |
tree | d88eb6f15428090f075d7da71ea32e90ceb7cc19 /test/files/run/t3887.scala | |
parent | b8c07db737b55a2ce34190b17013215dc13940ae (diff) | |
download | scala-cd92aad821eb476f68ea85fb9b149ee185a08e97.tar.gz scala-cd92aad821eb476f68ea85fb9b149ee185a08e97.tar.bz2 scala-cd92aad821eb476f68ea85fb9b149ee185a08e97.zip |
Unreverting r23174. No review.
Diffstat (limited to 'test/files/run/t3887.scala')
-rw-r--r-- | test/files/run/t3887.scala | 16 |
1 files changed, 16 insertions, 0 deletions
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") + +} |