diff options
Diffstat (limited to 'src/library/scala/Unit.scala')
-rw-r--r-- | src/library/scala/Unit.scala | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/library/scala/Unit.scala b/src/library/scala/Unit.scala index 018ad24a99..873281bb8f 100644 --- a/src/library/scala/Unit.scala +++ b/src/library/scala/Unit.scala @@ -19,7 +19,8 @@ package scala * method which is declared `void`. */ final abstract class Unit private extends AnyVal { - override def getClass(): Class[Unit] = null + // Provide a more specific return type for Scaladoc + override def getClass(): Class[Unit] = ??? } object Unit extends AnyValCompanion { @@ -29,7 +30,7 @@ object Unit extends AnyValCompanion { * @param x the Unit to be boxed * @return a scala.runtime.BoxedUnit offering `x` as its underlying value. */ - def box(x: Unit): scala.runtime.BoxedUnit = scala.runtime.BoxedUnit.UNIT + def box(x: Unit): scala.runtime.BoxedUnit = ??? /** Transform a boxed type into a value type. Note that this * method is not typesafe: it accepts any Object, but will throw @@ -39,7 +40,7 @@ object Unit extends AnyValCompanion { * @throws ClassCastException if the argument is not a scala.runtime.BoxedUnit * @return the Unit value () */ - def unbox(x: java.lang.Object): Unit = () + def unbox(x: java.lang.Object): Unit = ??? /** The String representation of the scala.Unit companion object. */ override def toString = "object scala.Unit" |