summaryrefslogtreecommitdiff
path: root/src/library/scala/Int.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-04-01 05:02:30 +0000
committerPaul Phillips <paulp@improving.org>2011-04-01 05:02:30 +0000
commit9b3852f26201aee7761637f89979dab2a71294a9 (patch)
treea26f7cd79256084b88153d1ba81e8c9d7c59dc59 /src/library/scala/Int.scala
parent305f49ce8f7358636bf81a7aca29d8ab42d98ed4 (diff)
downloadscala-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/Int.scala')
-rw-r--r--src/library/scala/Int.scala5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/library/scala/Int.scala b/src/library/scala/Int.scala
index 42cb6be44f..c53be1241d 100644
--- a/src/library/scala/Int.scala
+++ b/src/library/scala/Int.scala
@@ -16,7 +16,6 @@ package scala
* There is an implicit conversion from [[scala.Int]] => [[scala.runtime.RichInt]]
* which provides useful non-primitive operations.
*/
-
final class Int extends AnyVal {
def toByte: Byte = sys.error("stub")
def toShort: Short = sys.error("stub")
@@ -147,7 +146,6 @@ final class Int extends AnyVal {
}
-
object Int extends AnyValCompanion {
/** The smallest value representable as a Int.
*/
@@ -168,7 +166,7 @@ object Int extends AnyValCompanion {
* method is not typesafe: it accepts any Object, but will throw
* an exception if the argument is not a java.lang.Integer.
*
- * @param x the Int to be unboxed.
+ * @param x the java.lang.Integer to be unboxed.
* @throws ClassCastException if the argument is not a java.lang.Integer
* @return the Int resulting from calling intValue() on `x`
*/
@@ -178,3 +176,4 @@ object Int extends AnyValCompanion {
*/
override def toString = "object scala.Int"
}
+