diff options
author | Paul Phillips <paulp@improving.org> | 2012-05-10 23:19:55 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-05-10 23:20:56 -0700 |
commit | ef32a8b9334307d15d9fa68d3da3f6f80b200788 (patch) | |
tree | e4727e50d595de563c8d6c6936389c4090e4db60 /test/files | |
parent | df10f921158ea13ce8fb53c8e15ec290ace69d83 (diff) | |
download | scala-ef32a8b9334307d15d9fa68d3da3f6f80b200788.tar.gz scala-ef32a8b9334307d15d9fa68d3da3f6f80b200788.tar.bz2 scala-ef32a8b9334307d15d9fa68d3da3f6f80b200788.zip |
Removing redunant/passing tests from pending.
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/pos/t1987a.scala (renamed from test/files/pos/t1987.scala) | 0 | ||||
-rw-r--r-- | test/files/run/backreferences.check | 2 | ||||
-rw-r--r-- | test/files/run/backreferences.scala | 13 |
3 files changed, 15 insertions, 0 deletions
diff --git a/test/files/pos/t1987.scala b/test/files/pos/t1987a.scala index ccab133716..ccab133716 100644 --- a/test/files/pos/t1987.scala +++ b/test/files/pos/t1987a.scala diff --git a/test/files/run/backreferences.check b/test/files/run/backreferences.check new file mode 100644 index 0000000000..1d474d5255 --- /dev/null +++ b/test/files/run/backreferences.check @@ -0,0 +1,2 @@ +false +true diff --git a/test/files/run/backreferences.scala b/test/files/run/backreferences.scala new file mode 100644 index 0000000000..335cd6c7de --- /dev/null +++ b/test/files/run/backreferences.scala @@ -0,0 +1,13 @@ +case class Elem[T](x: T, y: T) + +object Test { + def unrolled[T](x: Any, y: Any, z: Any) = (x, y, z) match { + case (el: Elem[_], el.x, el.y) => true + case _ => false + } + + def main(args: Array[String]): Unit = { + println(unrolled(Elem("bippy", 5), "bippy", 6)) + println(unrolled(Elem("bippy", 5), "bippy", 5)) + } +} |