aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/dotc/transform/Erasure.scala
diff options
context:
space:
mode:
authorodersky <odersky@gmail.com>2017-02-16 10:56:46 +0100
committerGitHub <noreply@github.com>2017-02-16 10:56:46 +0100
commit6df672c7e7be65d7be1cd6524c610aed4f35178c (patch)
treea1b709dc631f0891b6a2c7c628439443c75f14e2 /compiler/src/dotty/tools/dotc/transform/Erasure.scala
parent39af2f595979c6bbeb3cfa52d401cf59be68126b (diff)
parent93a2d0653e6b74a0f88825ac8a522da87e474f2a (diff)
downloaddotty-6df672c7e7be65d7be1cd6524c610aed4f35178c.tar.gz
dotty-6df672c7e7be65d7be1cd6524c610aed4f35178c.tar.bz2
dotty-6df672c7e7be65d7be1cd6524c610aed4f35178c.zip
Merge pull request #1962 from dotty-staging/centralize-function-logic
Factor out logic for scala functions.
Diffstat (limited to 'compiler/src/dotty/tools/dotc/transform/Erasure.scala')
-rw-r--r--compiler/src/dotty/tools/dotc/transform/Erasure.scala6
1 files changed, 2 insertions, 4 deletions
diff --git a/compiler/src/dotty/tools/dotc/transform/Erasure.scala b/compiler/src/dotty/tools/dotc/transform/Erasure.scala
index bba97c4c2..34ea2bc6f 100644
--- a/compiler/src/dotty/tools/dotc/transform/Erasure.scala
+++ b/compiler/src/dotty/tools/dotc/transform/Erasure.scala
@@ -349,10 +349,8 @@ object Erasure extends TypeTestsCasts{
if ((owner eq defn.AnyClass) || (owner eq defn.AnyValClass)) {
assert(sym.isConstructor, s"${sym.showLocated}")
defn.ObjectClass
- } else if (defn.isXXLFunctionClass(owner))
- defn.FunctionXXLClass
- else if (defn.isImplicitFunctionClass(owner))
- recur(defn.FunctionClass(owner.name.functionArity))
+ } else if (defn.isSyntheticFunctionClass(owner))
+ defn.erasedFunctionClass(owner)
else
owner
recur(sym.owner)