summaryrefslogtreecommitdiff
path: root/test/files/run/t2212.scala
diff options
context:
space:
mode:
authorPhilipp Haller <hallerp@gmail.com>2009-07-31 14:47:42 +0000
committerPhilipp Haller <hallerp@gmail.com>2009-07-31 14:47:42 +0000
commitbe31fef41ad7585af15f3dc61be919ed9dc5ea1a (patch)
tree1c5b17ca8cbb43f1e0af8996ec5d36ef41944642 /test/files/run/t2212.scala
parentbd1e6e09342412a042cf7582124e90e12720e2ba (diff)
downloadscala-be31fef41ad7585af15f3dc61be919ed9dc5ea1a.tar.gz
scala-be31fef41ad7585af15f3dc61be919ed9dc5ea1a.tar.bz2
scala-be31fef41ad7585af15f3dc61be919ed9dc5ea1a.zip
Fixed #2212.
Diffstat (limited to 'test/files/run/t2212.scala')
-rw-r--r--test/files/run/t2212.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/run/t2212.scala b/test/files/run/t2212.scala
new file mode 100644
index 0000000000..5f4447fa2b
--- /dev/null
+++ b/test/files/run/t2212.scala
@@ -0,0 +1,10 @@
+object Test {
+ def main(args: Array[String]) {
+ import collection.mutable._
+ val x4 = new LinkedList[Int](1, null)
+ println(x4)
+ val y4 = new LinkedList[Int](1, null)
+ println(y4)
+ println(x4 equals y4) // or (y4 equals x4)
+ }
+}