diff options
author | Martin Odersky <odersky@gmail.com> | 2016-12-15 15:43:09 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-12-15 15:43:09 +0100 |
commit | bc869e74cb18ffdb4d42b59ad654f55403b9b6bd (patch) | |
tree | d9864e5b540ea7df66047422e0d5c43db7363fe0 /compiler/src/dotty/tools/dotc/reporting/diagnostic | |
parent | 559e49317912ce52c51e295346cebcafbb69462d (diff) | |
download | dotty-bc869e74cb18ffdb4d42b59ad654f55403b9b6bd.tar.gz dotty-bc869e74cb18ffdb4d42b59ad654f55403b9b6bd.tar.bz2 dotty-bc869e74cb18ffdb4d42b59ad654f55403b9b6bd.zip |
Add CyclicImplicitVal error to messages (reverted from commit 559e49317912ce52c51e295346cebcafbb69462d)
Diffstat (limited to 'compiler/src/dotty/tools/dotc/reporting/diagnostic')
-rw-r--r-- | compiler/src/dotty/tools/dotc/reporting/diagnostic/messages.scala | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/compiler/src/dotty/tools/dotc/reporting/diagnostic/messages.scala b/compiler/src/dotty/tools/dotc/reporting/diagnostic/messages.scala index ce3cb48ec..489165e56 100644 --- a/compiler/src/dotty/tools/dotc/reporting/diagnostic/messages.scala +++ b/compiler/src/dotty/tools/dotc/reporting/diagnostic/messages.scala @@ -899,15 +899,4 @@ object messages { val msg = hl"trying to define package with same name as `$existing`" val explanation = "" } - - case class CyclicImplicitVal(cycleSym: Symbol)(implicit ctx: Context) - extends Message(34) { - val kind = "Cyclic Reference" - val msg = em"cyclic reference involving $cycleSym" - val explanation = - hl"""|This happens when the right hand-side of $cycleSym's definition - |involves an implicit search. - | - |To avoid the error, give $cycleSym an explicit type.""" - } } |