We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55e2520 commit c84126dCopy full SHA for c84126d
compiler/src/dotty/tools/dotc/core/Types.scala
@@ -1516,10 +1516,14 @@ object Types {
1516
/** Hook for adding debug check code when denotations are assigned */
1517
final def checkDenot()(implicit ctx: Context) =
1518
if (Config.checkTypeRefCycles)
1519
- lastDenotation.info match {
1520
- case TypeBounds(lo, hi) =>
1521
- assert(lo ne this)
1522
- assert(hi ne this)
+ lastDenotation match {
+ case d: SingleDenotation =>
+ d.infoOrCompleter match {
+ case TypeBounds(lo, hi) =>
1523
+ assert(lo ne this)
1524
+ assert(hi ne this)
1525
+ case _ =>
1526
+ }
1527
case _ =>
1528
}
1529
0 commit comments