summaryrefslogtreecommitdiff
path: root/test/files/run
diff options
context:
space:
mode:
authorAleksandar Prokopec <axel22@gmail.com>2012-05-24 18:22:57 +0200
committerAleksandar Prokopec <axel22@gmail.com>2012-05-24 18:22:57 +0200
commit4793c7bafac6c900d8044108a263f6967da871ee (patch)
treeedc0f412ca3094949e5efceeb710b27b5acf68b2 /test/files/run
parente490b02476769310765a8d61da656b535d21c56e (diff)
downloadscala-4793c7bafac6c900d8044108a263f6967da871ee.tar.gz
scala-4793c7bafac6c900d8044108a263f6967da871ee.tar.bz2
scala-4793c7bafac6c900d8044108a263f6967da871ee.zip
Fixes SI-5428.
Diffstat (limited to 'test/files/run')
-rw-r--r--test/files/run/t5428.check1
-rw-r--r--test/files/run/t5428.scala29
2 files changed, 30 insertions, 0 deletions
diff --git a/test/files/run/t5428.check b/test/files/run/t5428.check
new file mode 100644
index 0000000000..7b4b1d6558
--- /dev/null
+++ b/test/files/run/t5428.check
@@ -0,0 +1 @@
+Stack(8, 7, 6, 5, 4, 3) \ No newline at end of file
diff --git a/test/files/run/t5428.scala b/test/files/run/t5428.scala
new file mode 100644
index 0000000000..106bb7fc31
--- /dev/null
+++ b/test/files/run/t5428.scala
@@ -0,0 +1,29 @@
+
+
+
+import collection.mutable.{Stack, StackProxy}
+
+
+
+class A extends StackProxy[Int] {
+ val self = Stack[Int]()
+}
+
+
+object Test {
+
+ def main(args: Array[String]) {
+ val a = new A
+
+ a push 3
+ a push 4
+ a push 5
+
+ a.push(6, 7, 8)
+
+ println(a)
+
+ a pop
+ }
+
+}