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/compiler/scala/tools/cmd/gen/AnyVals.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/compiler/scala/tools/cmd/gen/AnyVals.scala')
-rw-r--r-- | src/compiler/scala/tools/cmd/gen/AnyVals.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/compiler/scala/tools/cmd/gen/AnyVals.scala b/src/compiler/scala/tools/cmd/gen/AnyVals.scala index 8f82c997db..ab4a4a4402 100644 --- a/src/compiler/scala/tools/cmd/gen/AnyVals.scala +++ b/src/compiler/scala/tools/cmd/gen/AnyVals.scala @@ -182,7 +182,7 @@ trait AnyValReps { def classLines: List[String] def objectLines: List[String] def commonClassLines = List( - "def getClass(): Class[@name@]" + "override def getClass(): Class[@name@]" ) def lcname = name.toLowerCase @@ -429,7 +429,7 @@ def &(x: Boolean): Boolean = sys.error("stub") */ def ^(x: Boolean): Boolean = sys.error("stub") -def getClass(): Class[Boolean] = sys.error("stub") +override def getClass(): Class[Boolean] = sys.error("stub") """.trim.lines.toList def objectLines = interpolate(allCompanions).lines.toList @@ -443,7 +443,7 @@ def getClass(): Class[Boolean] = sys.error("stub") */ """ def classLines = List( - """def getClass(): Class[Unit] = sys.error("stub")""" + """override def getClass(): Class[Unit] = sys.error("stub")""" ) def objectLines = interpolate(allCompanions).lines.toList |