diff options
author | Aleksandar Prokopec <axel22@gmail.com> | 2012-05-24 18:22:57 +0200 |
---|---|---|
committer | Aleksandar Prokopec <axel22@gmail.com> | 2012-05-24 18:22:57 +0200 |
commit | 4793c7bafac6c900d8044108a263f6967da871ee (patch) | |
tree | edc0f412ca3094949e5efceeb710b27b5acf68b2 /src/library | |
parent | e490b02476769310765a8d61da656b535d21c56e (diff) | |
download | scala-4793c7bafac6c900d8044108a263f6967da871ee.tar.gz scala-4793c7bafac6c900d8044108a263f6967da871ee.tar.bz2 scala-4793c7bafac6c900d8044108a263f6967da871ee.zip |
Fixes SI-5428.
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/scala/collection/mutable/StackProxy.scala | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/library/scala/collection/mutable/StackProxy.scala b/src/library/scala/collection/mutable/StackProxy.scala index 8884f03bbd..9eadfe4045 100644 --- a/src/library/scala/collection/mutable/StackProxy.scala +++ b/src/library/scala/collection/mutable/StackProxy.scala @@ -54,6 +54,11 @@ trait StackProxy[A] extends Stack[A] with Proxy { this } + override def push(elem: A): this.type = { + self.push(elem) + this + } + /** Returns the top element of the stack. This method will not remove * the element from the stack. An error is signaled if there is no * element on the stack. |