diff options
author | Martin Odersky <odersky@gmail.com> | 2011-01-31 15:09:21 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2011-01-31 15:09:21 +0000 |
commit | 581e82f87f0ed4a2a484b00ac04c0bc667d201f9 (patch) | |
tree | d981f919a83678628ef6007702052000e7c4cc96 | |
parent | ce173be810079a51ab4a1b682b20d1eaefd165f1 (diff) | |
download | scala-581e82f87f0ed4a2a484b00ac04c0bc667d201f9.tar.gz scala-581e82f87f0ed4a2a484b00ac04c0bc667d201f9.tar.bz2 scala-581e82f87f0ed4a2a484b00ac04c0bc667d201f9.zip |
Avoids divergent implicit crash in typecompleti...
Avoids divergent implicit crash in typecompletion for IDE.
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Implicits.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Implicits.scala b/src/compiler/scala/tools/nsc/typechecker/Implicits.scala index bac6af71e9..a93eb0d5b4 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Implicits.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Implicits.scala @@ -997,6 +997,6 @@ trait Implicits { } } - private class DivergentImplicit extends Exception() - private def DivergentImplicit = new DivergentImplicit + private class DivergentImplicit extends TypeError("Divergent implicit search") + private val DivergentImplicit = new DivergentImplicit } |