diff options
author | Paul Phillips <paulp@improving.org> | 2011-04-01 05:02:30 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-04-01 05:02:30 +0000 |
commit | 9b3852f26201aee7761637f89979dab2a71294a9 (patch) | |
tree | a26f7cd79256084b88153d1ba81e8c9d7c59dc59 /src/library/scala/Long.scala | |
parent | 305f49ce8f7358636bf81a7aca29d8ab42d98ed4 (diff) | |
download | scala-9b3852f26201aee7761637f89979dab2a71294a9.tar.gz scala-9b3852f26201aee7761637f89979dab2a71294a9.tar.bz2 scala-9b3852f26201aee7761637f89979dab2a71294a9.zip |
A less ad hoc infrastructure for generating Any...
A less ad hoc infrastructure for generating AnyVal sources. A few more
comments on said sources. No review.
Diffstat (limited to 'src/library/scala/Long.scala')
-rw-r--r-- | src/library/scala/Long.scala | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/library/scala/Long.scala b/src/library/scala/Long.scala index 1de69dab7a..3124130663 100644 --- a/src/library/scala/Long.scala +++ b/src/library/scala/Long.scala @@ -16,7 +16,6 @@ package scala * There is an implicit conversion from [[scala.Long]] => [[scala.runtime.RichLong]] * which provides useful non-primitive operations. */ - final class Long extends AnyVal { def toByte: Byte = sys.error("stub") def toShort: Short = sys.error("stub") @@ -147,7 +146,6 @@ final class Long extends AnyVal { } - object Long extends AnyValCompanion { /** The smallest value representable as a Long. */ @@ -168,7 +166,7 @@ object Long extends AnyValCompanion { * method is not typesafe: it accepts any Object, but will throw * an exception if the argument is not a java.lang.Long. * - * @param x the Long to be unboxed. + * @param x the java.lang.Long to be unboxed. * @throws ClassCastException if the argument is not a java.lang.Long * @return the Long resulting from calling longValue() on `x` */ @@ -178,3 +176,4 @@ object Long extends AnyValCompanion { */ override def toString = "object scala.Long" } + |