diff options
author | Sébastien Doeraene <sjrdoeraene@gmail.com> | 2016-04-13 13:09:19 +0200 |
---|---|---|
committer | Sébastien Doeraene <sjrdoeraene@gmail.com> | 2016-04-13 16:20:46 +0200 |
commit | 51996c8474a06656f8c21302af2b4151bdc2393e (patch) | |
tree | 169bf4b6aadaf4b1af6cd7df95c4311aff04d4a5 /src/compiler | |
parent | 950f6df06ef122cc6b71a4b402b1b22d9e5376dc (diff) | |
download | scala-51996c8474a06656f8c21302af2b4151bdc2393e.tar.gz scala-51996c8474a06656f8c21302af2b4151bdc2393e.tar.bz2 scala-51996c8474a06656f8c21302af2b4151bdc2393e.zip |
Move ScalaRunTime.isAnyVal to reify.phases.Reify.
Because that is the only call site of that method.
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/reflect/reify/phases/Reify.scala | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/compiler/scala/reflect/reify/phases/Reify.scala b/src/compiler/scala/reflect/reify/phases/Reify.scala index 143424dac5..93f6f99d81 100644 --- a/src/compiler/scala/reflect/reify/phases/Reify.scala +++ b/src/compiler/scala/reflect/reify/phases/Reify.scala @@ -1,7 +1,6 @@ package scala.reflect.reify package phases -import scala.runtime.ScalaRunTime.isAnyVal import scala.reflect.reify.codegen._ trait Reify extends GenSymbols @@ -57,4 +56,9 @@ trait Reify extends GenSymbols case _ => throw new Error("reifee %s of type %s is not supported".format(reifee, reifee.getClass)) }) + + private def isAnyVal(x: Any) = x match { + case _: Byte | _: Short | _: Char | _: Int | _: Long | _: Float | _: Double | _: Boolean | _: Unit => true + case _ => false + } } |