summaryrefslogtreecommitdiff
path: root/test/files/run/t2212.scala
diff options
context:
space:
mode:
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..b9c0cd776b
--- /dev/null
+++ b/test/files/run/t2212.scala
@@ -0,0 +1,10 @@
+object Test {
+ def main(args: Array[String]) {
+ import collection.mutable._
+ val x4 = LinkedList[Int](1)
+ println(x4)
+ val y4 = LinkedList[Int](1)
+ println(y4)
+ println(x4 equals y4) // or (y4 equals x4)
+ }
+}