Skip to content

Commit 12b7379

Browse files
committed
Bugfix: Maintain inline context when rechecking
1 parent e623bb1 commit 12b7379

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ abstract class Recheck extends Phase, SymTransformer:
314314
recheckBlock(tree.stats, tree.expr, pt)
315315

316316
def recheckInlined(tree: Inlined, pt: Type)(using Context): Type =
317-
recheckBlock(tree.bindings, tree.expansion, pt)
317+
recheckBlock(tree.bindings, tree.expansion, pt)(using inlineContext(tree.call))
318318

319319
def recheckIf(tree: If, pt: Type)(using Context): Type =
320320
recheck(tree.cond, defn.BooleanType)

0 commit comments

Comments
 (0)