diff options
author | Paul Phillips <paulp@improving.org> | 2010-03-23 06:08:55 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-03-23 06:08:55 +0000 |
commit | a4aeb2d0a9ff5a82b8b1f3967ad5eb6331afc1c8 (patch) | |
tree | 0b2bd18d72c250958aee7b8df756d3de99e98469 | |
parent | ae8c065594aa605734b66c11693e5e584feaeddd (diff) | |
download | scala-a4aeb2d0a9ff5a82b8b1f3967ad5eb6331afc1c8.tar.gz scala-a4aeb2d0a9ff5a82b8b1f3967ad5eb6331afc1c8.tar.bz2 scala-a4aeb2d0a9ff5a82b8b1f3967ad5eb6331afc1c8.zip |
Fix for #3204.
that can arise when return types of public facing methods are inferred.
We eventually need some mechanism to make such issues easier to avoid.
No review.
-rw-r--r-- | src/library/scala/collection/SortedMap.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library/scala/collection/SortedMap.scala b/src/library/scala/collection/SortedMap.scala index 24f363243f..7b0d35220e 100644 --- a/src/library/scala/collection/SortedMap.scala +++ b/src/library/scala/collection/SortedMap.scala @@ -21,9 +21,9 @@ import mutable.Builder */ trait SortedMap[A, +B] extends Map[A, B] with SortedMapLike[A, B, SortedMap[A, B]] { /** Needs to be overridden in subclasses. */ - override def empty = SortedMap.empty[A, B] + override def empty: SortedMap[A, B] = SortedMap.empty[A, B] - override protected[this] def newBuilder : Builder[(A, B), SortedMap[A, B]] = + override protected[this] def newBuilder: Builder[(A, B), SortedMap[A, B]] = immutable.SortedMap.newBuilder[A, B] } |