summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan@lightbend.com>2017-02-16 11:14:25 -0800
committerGitHub <noreply@github.com>2017-02-16 11:14:25 -0800
commit9e59dc6bf02ab6b11ad0fa94c04420e14ad68e2a (patch)
treefeedaf58c846a53656acfcdce52beb00ea2d10d4 /src/compiler/scala/tools/nsc
parentb990e510510e77e516525d225a81cc3c22c94aec (diff)
parent0f3f635d30551b1b96c64b955a85a3e535d1f2d2 (diff)
downloadscala-9e59dc6bf02ab6b11ad0fa94c04420e14ad68e2a.tar.gz
scala-9e59dc6bf02ab6b11ad0fa94c04420e14ad68e2a.tar.bz2
scala-9e59dc6bf02ab6b11ad0fa94c04420e14ad68e2a.zip
Merge pull request #5587 from lrytz/t10072
SI-10072 cast Function nodes to environment in specialization
Diffstat (limited to 'src/compiler/scala/tools/nsc')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Duplicators.scala4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Duplicators.scala b/src/compiler/scala/tools/nsc/typechecker/Duplicators.scala
index df014b5161..ea82739504 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Duplicators.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Duplicators.scala
@@ -240,10 +240,6 @@ abstract class Duplicators extends Analyzer {
result.symbol.updateAttachment(DelambdafyTarget)
result
- case fun: Function =>
- debuglog("Clearing the type and retyping Function: " + fun)
- super.typed(fun.clearType, mode, pt)
-
case vdef @ ValDef(mods, name, tpt, rhs) =>
// log("vdef fixing tpe: " + tree.tpe + " with sym: " + tree.tpe.typeSymbol + " and " + invalidSyms)
//if (mods.hasFlag(Flags.LAZY)) vdef.symbol.resetFlag(Flags.MUTABLE) // Martin to Iulian: lazy vars can now appear because they are no longer boxed; Please check that deleting this statement is OK.