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._