Skip to content

Commit 0f9a032

Browse files
committed
Make SubstRecThis typemap idempotent
1 parent a7f803d commit 0f9a032

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ object Substituters:
189189
def apply(tp: Type): Type = substThis(tp, from, to, this)(using mapCtx)
190190
}
191191

192-
final class SubstRecThisMap(from: Type, to: Type)(using Context) extends DeepTypeMap {
192+
final class SubstRecThisMap(from: Type, to: Type)(using Context) extends DeepTypeMap, IdempotentCaptRefMap {
193193
def apply(tp: Type): Type = substRecThis(tp, from, to, this)(using mapCtx)
194194
}
195195

0 commit comments

Comments
 (0)