diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2013-10-21 14:03:11 -0700 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2013-10-21 14:03:11 -0700 |
commit | 90d6605d88ee01cb7e1e8761cc82ba28c8575d27 (patch) | |
tree | c11f1890edcdef4f49fcfada14ae01c7beb3ddf2 /test/disabled/neg/t7020.scala | |
parent | 98cee68a7026a3ca819cfecacc0c59c943000943 (diff) | |
parent | 88be7ea7efe65c4856a7f3d884db31269890f260 (diff) | |
download | scala-90d6605d88ee01cb7e1e8761cc82ba28c8575d27.tar.gz scala-90d6605d88ee01cb7e1e8761cc82ba28c8575d27.tar.bz2 scala-90d6605d88ee01cb7e1e8761cc82ba28c8575d27.zip |
Merge pull request #3067 from retronym/ticket/7020-2
Moving disabled tests to their rightful home.
Diffstat (limited to 'test/disabled/neg/t7020.scala')
-rw-r--r-- | test/disabled/neg/t7020.scala | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/test/disabled/neg/t7020.scala b/test/disabled/neg/t7020.scala new file mode 100644 index 0000000000..cc5421bab1 --- /dev/null +++ b/test/disabled/neg/t7020.scala @@ -0,0 +1,30 @@ +object Test { + // warning was non-deterministic + List(5) match { + case 1 :: Nil | 2 :: Nil => + case (x@(4 | 5 | 6)) :: Nil => + case 7 :: Nil => + case Nil => + } + + List(5) match { + case 1 :: Nil | 2 :: Nil => + case (x@(4 | 5 | 6)) :: Nil => + case 7 :: Nil => + case Nil => + } + + List(5) match { + case 1 :: Nil | 2 :: Nil => + case (x@(4 | 5 | 6)) :: Nil => + case 7 :: Nil => + case Nil => + } + + List(5) match { + case 1 :: Nil | 2 :: Nil => + case (x@(4 | 5 | 6)) :: Nil => + case 7 :: Nil => + case Nil => + } +} |