Skip to content

Commit 560afa1

Browse files
committed
Switch to (using Context) in more files in typer
1 parent 8fb6a67 commit 560afa1

File tree

3 files changed

+59
-53
lines changed

3 files changed

+59
-53
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,8 @@ class PostTyper extends MacroTransform with IdentityDenotTransformer { thisPhase
277277
}
278278
case Inlined(call, bindings, expansion) if !call.isEmpty =>
279279
val pos = call.sourcePos
280-
val callTrace = Inliner.inlineCallTrace(call.symbol, pos)(ctx.withSource(pos.source))
281-
cpy.Inlined(tree)(callTrace, transformSub(bindings), transform(expansion)(inlineContext(call)))
280+
val callTrace = Inliner.inlineCallTrace(call.symbol, pos)(using ctx.withSource(pos.source))
281+
cpy.Inlined(tree)(callTrace, transformSub(bindings), transform(expansion)(using inlineContext(call)))
282282
case templ: Template =>
283283
withNoCheckNews(templ.parents.flatMap(newPart)) {
284284
Checking.checkEnumParentOK(templ.symbol.owner)

0 commit comments

Comments
 (0)