Skip to content

Commit 6ebe141

Browse files
committed
Fix SymDenotations#seesOpaques
1 parent 3922a04 commit 6ebe141

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

compiler/src/dotty/tools/dotc/core/SymDenotations.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ object SymDenotations {
592592

593593
def seesOpaques(implicit ctx: Context): Boolean =
594594
containsOpaques ||
595-
is(Module, butNot = Package) && owner.containsOpaques
595+
is(Module, butNot = Package) && owner.seesOpaques
596596

597597
/** Is this the denotation of a self symbol of some class?
598598
* This is the case if one of two conditions holds:

compiler/src/dotty/tools/dotc/core/TypeComparer.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2463,9 +2463,9 @@ class ExplainingTypeComparer(initctx: Context) extends TypeComparer(initctx) {
24632463
if (skipped) op
24642464
else {
24652465
indent += 2
2466-
b append "\n" append (" " * indent) append "==> " append str
2466+
b.append("\n").append(" " * indent).append("==> ").append(str)
24672467
val res = op
2468-
b append "\n" append (" " * indent) append "<== " append str append " = " append show(res)
2468+
b.append("\n").append(" " * indent).append("<== ").append(str).append(" = ").append(show(res))
24692469
indent -= 2
24702470
res
24712471
}

0 commit comments

Comments
 (0)