Skip to content

Commit 1f8650c

Browse files
committed
Fix CI
Ycheck complains selection of `show` on `Block | Null`. The issue is reported in #6655
1 parent da6a47f commit 1f8650c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,8 +419,8 @@ class TreeChecker extends Phase with SymTransformer {
419419

420420
override def typedClosure(tree: untpd.Closure, pt: Type)(implicit ctx: Context): Tree = {
421421
if (!ctx.phase.lambdaLifted) nestingBlock match {
422-
case Block((meth : DefDef) :: Nil, closure: Closure) =>
423-
assert(meth.symbol == closure.meth.symbol, "closure.meth symbol not equal to method symbol. Block: " + nestingBlock.show)
422+
case block @ Block((meth : DefDef) :: Nil, closure: Closure) =>
423+
assert(meth.symbol == closure.meth.symbol, "closure.meth symbol not equal to method symbol. Block: " + block.show)
424424

425425
case block: untpd.Block =>
426426
assert(false, "function literal are not properly formed as a block of DefDef and Closure. Found: " + tree.show + " Nesting block: " + block.show)

0 commit comments

Comments
 (0)