summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/transform/SpecializeTypes.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-03-14 13:09:43 -0700
committerPaul Phillips <paulp@improving.org>2012-03-14 14:22:54 -0700
commit5db8e84cb0b92c4a5abe27574dfd51b8bd1fb54f (patch)
tree3a1bf19b0b525bdb4a5680ef506f8a6c476618c5 /src/compiler/scala/tools/nsc/transform/SpecializeTypes.scala
parent1c061e5931ccc39090d955e3bc18dd0a1e48df84 (diff)
downloadscala-5db8e84cb0b92c4a5abe27574dfd51b8bd1fb54f.tar.gz
scala-5db8e84cb0b92c4a5abe27574dfd51b8bd1fb54f.tar.bz2
scala-5db8e84cb0b92c4a5abe27574dfd51b8bd1fb54f.zip
The rest of the inline classes.
Have you often thought that programming is just like the movie 'Hackers', only with less rollerblading? Now that we have @inline skates, that last caveat can be retired. It's just like the movie 'Hackers'. Signed-off-by: Zero Cool
Diffstat (limited to 'src/compiler/scala/tools/nsc/transform/SpecializeTypes.scala')
-rw-r--r--src/compiler/scala/tools/nsc/transform/SpecializeTypes.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/transform/SpecializeTypes.scala b/src/compiler/scala/tools/nsc/transform/SpecializeTypes.scala
index 28a9818017..7b0f5254b6 100644
--- a/src/compiler/scala/tools/nsc/transform/SpecializeTypes.scala
+++ b/src/compiler/scala/tools/nsc/transform/SpecializeTypes.scala
@@ -348,7 +348,7 @@ abstract class SpecializeTypes extends InfoTransform with TypingTransformers {
*/
def specializesClass(sym: Symbol): Symbol = {
val c = sym.companionClass
- if (isValueClass(c)) c else AnyRefClass
+ if (isPrimitiveValueClass(c)) c else AnyRefClass
}
/** Return the types `sym` should be specialized at. This may be some of the primitive types