summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/transform/UnCurry.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/scala/tools/nsc/transform/UnCurry.scala')
-rw-r--r--src/compiler/scala/tools/nsc/transform/UnCurry.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/transform/UnCurry.scala b/src/compiler/scala/tools/nsc/transform/UnCurry.scala
index cd1a9959dd..d2955bf9e5 100644
--- a/src/compiler/scala/tools/nsc/transform/UnCurry.scala
+++ b/src/compiler/scala/tools/nsc/transform/UnCurry.scala
@@ -72,7 +72,7 @@ abstract class UnCurry extends InfoTransform {
private var needTryLift = false;
private var inPattern = false;
private var inConstructorFlag = 0L;
- private var localTyper: analyzer.Typer = analyzer.newTyper(analyzer.startContext.make(unit));
+ private var localTyper: analyzer.Typer = analyzer.newTyper(analyzer.rootContext(unit));
override def transform(tree: Tree): Tree = try { //debug
postTransform(mainTransform(tree));