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.
Function1#andThen
1 parent c4e703f commit 5535e13Copy full SHA for 5535e13
compiler/src/dotty/tools/dotc/ast/TreeTypeMap.scala
@@ -68,12 +68,12 @@ class TreeTypeMap(
68
}
69
70
71
- val mapType: Type => Type =
+ def mapType(tp: Type): Type =
72
val substMap = new TypeMap():
73
def apply(tp: Type): Type = tp match
74
case tp: TermRef if tp.symbol.isImport => mapOver(tp)
75
case tp => tp.substSym(substFrom, substTo)
76
- typeMap.andThen(substMap).andThen(mapOwnerThis)
+ mapOwnerThis(substMap(typeMap(tp)))
77
end mapType
78
79
private def updateDecls(prevStats: List[Tree], newStats: List[Tree]): Unit =
0 commit comments