diff options
author | Martin Odersky <odersky@gmail.com> | 2013-09-08 17:53:19 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2013-09-08 17:53:19 +0200 |
commit | 115c5392b9aecc5255a6370cde4a9f7b506f47d7 (patch) | |
tree | a9b2f2bd75d39432fc8e1890dbf19bdd3038a2a6 /src/dotty/tools/dotc/typer/Implicits.scala | |
parent | e2fbef4be07c83fde6fb18b9b3b210c4f7d21c1e (diff) | |
download | dotty-115c5392b9aecc5255a6370cde4a9f7b506f47d7.tar.gz dotty-115c5392b9aecc5255a6370cde4a9f7b506f47d7.tar.bz2 dotty-115c5392b9aecc5255a6370cde4a9f7b506f47d7.zip |
Fixed an initialization problem in implicits
Diffstat (limited to 'src/dotty/tools/dotc/typer/Implicits.scala')
-rw-r--r-- | src/dotty/tools/dotc/typer/Implicits.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dotty/tools/dotc/typer/Implicits.scala b/src/dotty/tools/dotc/typer/Implicits.scala index b9e02dee7..ddac6f3bf 100644 --- a/src/dotty/tools/dotc/typer/Implicits.scala +++ b/src/dotty/tools/dotc/typer/Implicits.scala @@ -166,7 +166,7 @@ trait ImplicitRunInfo { self: RunInfo => * compute and cache the implicit scope; all variations wrt type parameters or * abstract types are eliminated. */ - private val liftToClasses = new TypeMap { + private object liftToClasses extends TypeMap { def apply(tp: Type) = tp match { case tp: TypeRef if tp.symbol.isAbstractOrAliasType => val pre = tp.prefix @@ -364,8 +364,8 @@ trait Implicits { self: Typer => override def shadowedImplicit(ref: TermRef, shadowing: Type): SearchFailure = record(new ShadowedImplicit(ref, shadowing, pt, argument)) override def failedSearch: SearchFailure = { - println(s"wildPt = $wildPt") - println(s"implicit scope = ${implicitScope(wildPt).companionRefs}") + //println(s"wildPt = $wildPt") + //println(s"implicit scope = ${implicitScope(wildPt).companionRefs}") new FailedImplicit(failures, pt, argument) } } |