Skip to content

Commit 198c4c3

Browse files
committed
Fix fallout in other tests
1 parent a06264d commit 198c4c3

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

compiler/src/dotty/tools/dotc/ast/TreeTypeMap.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class TreeTypeMap(
5656
/** Replace occurrences of `This(oldOwner)` in some prefix of a type
5757
* by the corresponding `This(newOwner)`.
5858
*/
59-
private val mapOwnerThis = new TypeMap {
59+
private val mapOwnerThis = new TypeMap with cc.CaptureSet.IdempotentCaptRefMap {
6060
private def mapPrefix(from: List[Symbol], to: List[Symbol], tp: Type): Type = from match {
6161
case Nil => tp
6262
case (cls: ClassSymbol) :: from1 => mapPrefix(from1, to.tail, tp.substThis(cls, to.head.thisType))

compiler/src/dotty/tools/dotc/cc/CaptureSet.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ object CaptureSet:
523523

524524
private def mapIsIdempotent = tm.isInstanceOf[IdempotentCaptRefMap]
525525

526-
assert(ccAllowUnsoundMaps || mapIsIdempotent)
526+
assert(ccAllowUnsoundMaps || mapIsIdempotent, tm.getClass)
527527

528528
private def whereCreated(using Context): String =
529529
if stack == null then ""

compiler/test/dotc/pos-test-pickling.blacklist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ i6507b.scala
1919
i12299a.scala
2020
i13871.scala
2121
i15181.scala
22+
i15922.scala
2223

2324
# Tree is huge and blows stack for printing Text
2425
i7034.scala

0 commit comments

Comments
 (0)