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 /src | |
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 'src')
-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. |