diff options
author | Philipp Haller <hallerp@gmail.com> | 2009-07-31 14:47:42 +0000 |
---|---|---|
committer | Philipp Haller <hallerp@gmail.com> | 2009-07-31 14:47:42 +0000 |
commit | be31fef41ad7585af15f3dc61be919ed9dc5ea1a (patch) | |
tree | 1c5b17ca8cbb43f1e0af8996ec5d36ef41944642 /test | |
parent | bd1e6e09342412a042cf7582124e90e12720e2ba (diff) | |
download | scala-be31fef41ad7585af15f3dc61be919ed9dc5ea1a.tar.gz scala-be31fef41ad7585af15f3dc61be919ed9dc5ea1a.tar.bz2 scala-be31fef41ad7585af15f3dc61be919ed9dc5ea1a.zip |
Fixed #2212.
Diffstat (limited to 'test')
-rw-r--r-- | test/files/run/t2212.check | 3 | ||||
-rw-r--r-- | test/files/run/t2212.scala | 10 |
2 files changed, 13 insertions, 0 deletions
diff --git a/test/files/run/t2212.check b/test/files/run/t2212.check new file mode 100644 index 0000000000..302bd0b6a8 --- /dev/null +++ b/test/files/run/t2212.check @@ -0,0 +1,3 @@ +LinkedList(1) +LinkedList(1) +true 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) + } +} |