diff options
author | Martin Odersky <odersky@gmail.com> | 2011-01-24 11:24:37 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2011-01-24 11:24:37 +0000 |
commit | 492be26527c69d1a6bb44b6136bcc4106c4ede09 (patch) | |
tree | e02dda21fec9ce6f194d6ce71843ad09515974bf | |
parent | d2dfdc4e6f93686ee0cbc2e7ae180661e7bab79b (diff) | |
download | scala-492be26527c69d1a6bb44b6136bcc4106c4ede09.tar.gz scala-492be26527c69d1a6bb44b6136bcc4106c4ede09.tar.bz2 scala-492be26527c69d1a6bb44b6136bcc4106c4ede09.zip |
made DivergentImplicit a def so we see what goe...
made DivergentImplicit a def so we see what goes wrong lately in Eclipse.
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Implicits.scala | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Implicits.scala b/src/compiler/scala/tools/nsc/typechecker/Implicits.scala index 5e0f5779fe..ca690735a4 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Implicits.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Implicits.scala @@ -366,7 +366,7 @@ trait Implicits { // println(" "*context.openImplicits.length+"typed implicit "+info+" for "+pt) //@MDEBUG typedImplicit0(info, ptChecked) } catch { - case DivergentImplicit => + case ex: DivergentImplicit => // println("DivergentImplicit for pt:"+ pt +", open implicits:"+context.openImplicits) //@MDEBUG if (context.openImplicits.tail.isEmpty) { if (!(pt.isErroneous)) @@ -1005,5 +1005,6 @@ trait Implicits { } } - private val DivergentImplicit = new Exception() + private class DivergentImplicit extends Exception() + private def DivergentImplicit = new DivergentImplicit } |