summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/transform/ExtensionMethods.scala
diff options
context:
space:
mode:
authorJames Iry <james.iry@typesafe.com>2013-07-30 11:22:55 -0700
committerJames Iry <james.iry@typesafe.com>2013-11-06 12:28:19 -0800
commit510b8cecc4951ff8092cfa931c2dc3717e21dded (patch)
treece63f3c54e58f927de9e6d6df1ecc6967f012bb9 /src/compiler/scala/tools/nsc/transform/ExtensionMethods.scala
parent10a061d425857c9e7bf4fa9aba9923b90467e24e (diff)
downloadscala-510b8cecc4951ff8092cfa931c2dc3717e21dded.tar.gz
scala-510b8cecc4951ff8092cfa931c2dc3717e21dded.tar.bz2
scala-510b8cecc4951ff8092cfa931c2dc3717e21dded.zip
Refactor Erasure for delambdafication.
This commit is purely a refactor. It pulls code needed to adapt a tree of one type into a tree of another type (by casting, boxing, coercing, etc) out of Erasure and into common locations that will be usable from the Delambdafy phase.
Diffstat (limited to 'src/compiler/scala/tools/nsc/transform/ExtensionMethods.scala')
-rw-r--r--src/compiler/scala/tools/nsc/transform/ExtensionMethods.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/transform/ExtensionMethods.scala b/src/compiler/scala/tools/nsc/transform/ExtensionMethods.scala
index 9e8cbe6c03..2235a93ca4 100644
--- a/src/compiler/scala/tools/nsc/transform/ExtensionMethods.scala
+++ b/src/compiler/scala/tools/nsc/transform/ExtensionMethods.scala
@@ -129,7 +129,7 @@ abstract class ExtensionMethods extends Transform with TypingTransformers {
if (seen contains clazz)
unit.error(pos, "value class may not unbox to itself")
else {
- val unboxed = erasure.underlyingOfValueClass(clazz).typeSymbol
+ val unboxed = definitions.underlyingOfValueClass(clazz).typeSymbol
if (unboxed.isDerivedValueClass) checkNonCyclic(pos, seen + clazz, unboxed)
}