summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/files/run/t2212.check3
-rw-r--r--test/files/run/t2212.scala10
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)
+ }
+}