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/Char.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/Char.scala')
-rw-r--r-- | src/library/scala/Char.scala | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/library/scala/Char.scala b/src/library/scala/Char.scala index b1c9d8e6d4..a5d1cb019b 100644 --- a/src/library/scala/Char.scala +++ b/src/library/scala/Char.scala @@ -16,7 +16,6 @@ package scala * There is an implicit conversion from [[scala.Char]] => [[scala.runtime.RichChar]] * which provides useful non-primitive operations. */ - final class Char extends AnyVal { def toByte: Byte = sys.error("stub") def toShort: Short = sys.error("stub") @@ -147,7 +146,6 @@ final class Char extends AnyVal { } - object Char extends AnyValCompanion { /** The smallest value representable as a Char. */ @@ -168,7 +166,7 @@ object Char extends AnyValCompanion { * method is not typesafe: it accepts any Object, but will throw * an exception if the argument is not a java.lang.Character. * - * @param x the Char to be unboxed. + * @param x the java.lang.Character to be unboxed. * @throws ClassCastException if the argument is not a java.lang.Character * @return the Char resulting from calling charValue() on `x` */ @@ -178,3 +176,4 @@ object Char extends AnyValCompanion { */ override def toString = "object scala.Char" } + |