aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/TypeComparer.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-06-30 18:42:29 +0200
committerMartin Odersky <odersky@gmail.com>2016-07-11 13:35:07 +0200
commit34a068b7f6039637d6f1330e3d071f5bf75e9cec (patch)
treeef7b435c50e4110971721836ebdaf9e0d07b4328 /src/dotty/tools/dotc/core/TypeComparer.scala
parent32c0135b59fe02a70ed0b1a693251a0028d479c8 (diff)
downloaddotty-34a068b7f6039637d6f1330e3d071f5bf75e9cec.tar.gz
dotty-34a068b7f6039637d6f1330e3d071f5bf75e9cec.tar.bz2
dotty-34a068b7f6039637d6f1330e3d071f5bf75e9cec.zip
Drop Config.checkKinds
Allows us to drop also the involved knownHK method. Lots of other cleanups.
Diffstat (limited to 'src/dotty/tools/dotc/core/TypeComparer.scala')
-rw-r--r--src/dotty/tools/dotc/core/TypeComparer.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/TypeComparer.scala b/src/dotty/tools/dotc/core/TypeComparer.scala
index 34fe8629e..d310bd844 100644
--- a/src/dotty/tools/dotc/core/TypeComparer.scala
+++ b/src/dotty/tools/dotc/core/TypeComparer.scala
@@ -1353,7 +1353,7 @@ class TypeComparer(initctx: Context) extends DotClass with ConstraintHandling {
case _ => tp.show
}
if (true) throw new MergeError(s"cannot merge ${showType(tp1)} with ${showType(tp2)}", tp1, tp2)
- else throw new Error(s"cannot merge ${showType(tp1)} with ${showType(tp2)}")
+ else throw new Error(s"cannot merge ${showType(tp1)} with ${showType(tp2)}") // flip condition for debugging
}
/** Merge two lists of names. If names in corresponding positions match, keep them,