diff options
author | Paul Phillips <paulp@improving.org> | 2012-01-27 16:30:01 -0800 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-01-28 00:43:06 -0800 |
commit | e61eff23df977eeed19bfe253b01b69cce47dfa3 (patch) | |
tree | b4db063cc658a51142e03e4e5d1570c0d525321e /src/library/scala/Unit.scala | |
parent | 0d0cdea28ec142a3e6da7a29b8130138a41ae782 (diff) | |
download | scala-e61eff23df977eeed19bfe253b01b69cce47dfa3.tar.gz scala-e61eff23df977eeed19bfe253b01b69cce47dfa3.tar.bz2 scala-e61eff23df977eeed19bfe253b01b69cce47dfa3.zip |
Unsealed AnyVal.
Hacks here and there to allow them to survive at least
to erasure. Since nothing is done with them there yet, they
inevitably crash and burn a little ways beyond that.
Diffstat (limited to 'src/library/scala/Unit.scala')
-rw-r--r-- | src/library/scala/Unit.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/Unit.scala b/src/library/scala/Unit.scala index 57970b021b..f6ed0121ab 100644 --- a/src/library/scala/Unit.scala +++ b/src/library/scala/Unit.scala @@ -17,7 +17,7 @@ package scala * method which is declared `void`. */ final class Unit extends AnyVal { - def getClass(): Class[Unit] = sys.error("stub") + override def getClass(): Class[Unit] = sys.error("stub") } object Unit extends AnyValCompanion { |