diff options
author | Antonio Cunei <antonio.cunei@epfl.ch> | 2010-01-08 13:14:47 +0000 |
---|---|---|
committer | Antonio Cunei <antonio.cunei@epfl.ch> | 2010-01-08 13:14:47 +0000 |
commit | c63a27103414915998d52d99655c20fe0f81a721 (patch) | |
tree | 335a7265514dd818884c82950166bc5101b72f5e /src/library | |
parent | 6f3aa39042f58ed869fa785dea593e9e07c6229a (diff) | |
download | scala-c63a27103414915998d52d99655c20fe0f81a721.tar.gz scala-c63a27103414915998d52d99655c20fe0f81a721.tar.bz2 scala-c63a27103414915998d52d99655c20fe0f81a721.zip |
Reverting r20406 (dragos)
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/scala/Predef.scala | 4 | ||||
-rw-r--r-- | src/library/scala/collection/immutable/StringOps.scala | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/library/scala/Predef.scala b/src/library/scala/Predef.scala index 5684c91aaa..1b9f4b75ba 100644 --- a/src/library/scala/Predef.scala +++ b/src/library/scala/Predef.scala @@ -117,7 +117,7 @@ object Predef extends LowPriorityImplicits { throw new IllegalArgumentException("requirement failed: "+ message) } - final class Ensuring[A](val x: A) { + class Ensuring[A](x: A) { def ensuring(cond: Boolean): A = { assert(cond); x } def ensuring(cond: Boolean, msg: Any): A = { assert(cond, msg); x } def ensuring(cond: A => Boolean): A = { assert(cond(x)); x } @@ -139,7 +139,7 @@ object Predef extends LowPriorityImplicits { def unapply[A, B, C](x: Tuple3[A, B, C]): Option[Tuple3[A, B, C]] = Some(x) } - final class ArrowAssoc[A](val x: A) { + class ArrowAssoc[A](x: A) { @inline def -> [B](y: B): Tuple2[A, B] = Tuple2(x, y) def →[B](y: B): Tuple2[A, B] = ->(y) } diff --git a/src/library/scala/collection/immutable/StringOps.scala b/src/library/scala/collection/immutable/StringOps.scala index db6479742b..9138c2bbac 100644 --- a/src/library/scala/collection/immutable/StringOps.scala +++ b/src/library/scala/collection/immutable/StringOps.scala @@ -17,7 +17,7 @@ import mutable.StringBuilder /** * @since 2.8 */ -final class StringOps(override val repr: String) extends StringLike[String] { +class StringOps(override val repr: String) extends StringLike[String] { override protected[this] def thisCollection: WrappedString = new WrappedString(repr) override protected[this] def toCollection(repr: String): WrappedString = new WrappedString(repr) |