From c9365c3a1a060141c31549f875ec161521ece168 Mon Sep 17 00:00:00 2001 From: Miles Sabin Date: Wed, 5 Jun 2019 16:15:47 +0100 Subject: [PATCH] More build unbreakage --- compiler/src/dotty/tools/dotc/transform/CompleteJavaEnums.scala | 1 + compiler/src/dotty/tools/dotc/transform/SyntheticMembers.scala | 2 +- compiler/src/dotty/tools/dotc/typer/Implicits.scala | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/src/dotty/tools/dotc/transform/CompleteJavaEnums.scala b/compiler/src/dotty/tools/dotc/transform/CompleteJavaEnums.scala index 14e1bd065f39..1b18e7c8b0b4 100644 --- a/compiler/src/dotty/tools/dotc/transform/CompleteJavaEnums.scala +++ b/compiler/src/dotty/tools/dotc/transform/CompleteJavaEnums.scala @@ -12,6 +12,7 @@ import Symbols._ import Constants._ import Decorators._ import DenotTransformers._ +import dotty.tools.dotc.ast.Trees._ object CompleteJavaEnums { val name: String = "completeJavaEnums" diff --git a/compiler/src/dotty/tools/dotc/transform/SyntheticMembers.scala b/compiler/src/dotty/tools/dotc/transform/SyntheticMembers.scala index 3256860b4281..60d98a74aaa8 100644 --- a/compiler/src/dotty/tools/dotc/transform/SyntheticMembers.scala +++ b/compiler/src/dotty/tools/dotc/transform/SyntheticMembers.scala @@ -122,7 +122,7 @@ class SyntheticMembers(thisPhase: DenotTransformer) { case nme.productElement => productElementBody(accessors.length, vrefss.head.head) } ctx.log(s"adding $synthetic to $clazz at ${ctx.phase}") - synthesizeDef(synthetic, syntheticRHS) + synthesizeDef(synthetic, treess => ctx => syntheticRHS(treess)(ctx)) } /** The class diff --git a/compiler/src/dotty/tools/dotc/typer/Implicits.scala b/compiler/src/dotty/tools/dotc/typer/Implicits.scala index b09b221521d5..668001abdae5 100644 --- a/compiler/src/dotty/tools/dotc/typer/Implicits.scala +++ b/compiler/src/dotty/tools/dotc/typer/Implicits.scala @@ -26,7 +26,6 @@ import ProtoTypes._ import ErrorReporting._ import reporting.diagnostic.Message import Inferencing.fullyDefinedType -import TypeApplications.EtaExpansion import Trees._ import transform.SymUtils._ import transform.TypeUtils._