diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2013-01-13 13:07:52 +0100 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2013-01-13 13:07:52 +0100 |
commit | 1212af48f474bc392b73d29f4719b5ff8d0a66fa (patch) | |
tree | 0afdf1d792e9dd3071fee5318ac56a8a98aad807 /src | |
parent | 9ea0a208346e86031a58fa9c28daf6103778a02f (diff) | |
download | scala-1212af48f474bc392b73d29f4719b5ff8d0a66fa.tar.gz scala-1212af48f474bc392b73d29f4719b5ff8d0a66fa.tar.bz2 scala-1212af48f474bc392b73d29f4719b5ff8d0a66fa.zip |
SI-5340 Change println to log
An esoteric implicit search could trigger an "amb prefix ..."
message to standard out. Now the message has been improved
and sent to the logger.
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Implicits.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Implicits.scala b/src/compiler/scala/tools/nsc/typechecker/Implicits.scala index 10003723fd..ec3a0a0ef7 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Implicits.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Implicits.scala @@ -956,7 +956,7 @@ trait Implicits { infoMap get sym match { case Some(infos1) => if (infos1.nonEmpty && !(pre =:= infos1.head.pre.prefix)) { - println("amb prefix: "+pre+"#"+sym+" "+infos1.head.pre.prefix+"#"+sym) + log(s"Ignoring implicit members of $pre#$sym as it is also visible via another prefix: ${infos1.head.pre.prefix}") infoMap(sym) = List() // ambiguous prefix - ignore implicit members } case None => |