diff options
-rw-r--r-- | compiler/src/dotty/tools/dotc/typer/Dynamic.scala | 4 | ||||
-rw-r--r-- | compiler/src/dotty/tools/dotc/typer/Typer.scala | 1 | ||||
-rw-r--r-- | library/src/scala/reflect/Projector.scala | 2 |
3 files changed, 3 insertions, 4 deletions
diff --git a/compiler/src/dotty/tools/dotc/typer/Dynamic.scala b/compiler/src/dotty/tools/dotc/typer/Dynamic.scala index 7cfd6327b..4b7584559 100644 --- a/compiler/src/dotty/tools/dotc/typer/Dynamic.scala +++ b/compiler/src/dotty/tools/dotc/typer/Dynamic.scala @@ -116,11 +116,11 @@ trait Dynamic { self: Typer with Applications => * * If `U` is a value type, map `x.a` to the equivalent of: * - * implicitly[Projection[T]].get(x, "a").asInstanceOf[U] + * implicitly[Projector[T]].get(x, "a").asInstanceOf[U] * * If `U` is a method type (T1,...,Tn)R, map `x.a` to the equivalent of: * - * implicitly[Projection[T]].getMethod(x, "a")(CT1, ..., CTn).asInstanceOf[(T1,...,Tn) => R] + * implicitly[Projector[T]].getMethod(x, "a")(CT1, ..., CTn).asInstanceOf[(T1,...,Tn) => R] * * where CT1,...,CTn are the classtags representing the erasure of T1,...,Tn. * diff --git a/compiler/src/dotty/tools/dotc/typer/Typer.scala b/compiler/src/dotty/tools/dotc/typer/Typer.scala index 4c238518e..ec4c135f7 100644 --- a/compiler/src/dotty/tools/dotc/typer/Typer.scala +++ b/compiler/src/dotty/tools/dotc/typer/Typer.scala @@ -1805,7 +1805,6 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit case Apply(_, _) => " more" case _ => "" } - println(i"tree = $tree, pt = $pt") errorTree(tree, em"$methodStr does not take$more parameters") } } diff --git a/library/src/scala/reflect/Projector.scala b/library/src/scala/reflect/Projector.scala index 68240da76..b5732ee17 100644 --- a/library/src/scala/reflect/Projector.scala +++ b/library/src/scala/reflect/Projector.scala @@ -67,5 +67,5 @@ class Projector extends scala.Projector[Any] { } object Projector { - implicit def reflectiveProjector: scala.Projector[Any] = new Projector + implicit val reflectiveProjector: scala.Projector[Any] = new Projector }
\ No newline at end of file |