Skip to content

Commit 5442a4f

Browse files
committed
Use atPhase for ContextFunctionResults
1 parent 165b7d8 commit 5442a4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/transform/ContextFunctionResults.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ object ContextFunctionResults:
121121
*/
122122
def integrateSelect(tree: untpd.Tree, n: Int = 0)(using Context): Boolean =
123123
if ctx.erasedTypes then
124-
integrateSelect(tree, n)(using ctx.withPhase(erasurePhase))
124+
atPhase(erasurePhase)(integrateSelect(tree, n))
125125
else tree match
126126
case Select(qual, name) =>
127127
if name == nme.apply && defn.isContextFunctionClass(tree.symbol.maybeOwner) then

0 commit comments

Comments
 (0)