diff options
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") + +} |