diff options
author | Adriaan Moors <adriaan.moors@epfl.ch> | 2012-05-25 01:48:09 -0700 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@epfl.ch> | 2012-05-25 01:48:09 -0700 |
commit | 19921fb319336a89b438f98b0b99eb7510a70c69 (patch) | |
tree | 219a389efe42f9ef161ee670e7823c8af6c31624 /test | |
parent | ef352caad56a093cb925f3fec5d306c9d9f9cf1e (diff) | |
parent | 4793c7bafac6c900d8044108a263f6967da871ee (diff) | |
download | scala-19921fb319336a89b438f98b0b99eb7510a70c69.tar.gz scala-19921fb319336a89b438f98b0b99eb7510a70c69.tar.bz2 scala-19921fb319336a89b438f98b0b99eb7510a70c69.zip |
Merge pull request #618 from axel22/issue/5428
Fixes SI-5428.
Diffstat (limited to 'test')
-rw-r--r-- | test/files/run/t5428.check | 1 | ||||
-rw-r--r-- | test/files/run/t5428.scala | 29 |
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 + } + +} |