File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/transform Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -419,8 +419,8 @@ class TreeChecker extends Phase with SymTransformer {
419
419
420
420
override def typedClosure (tree : untpd.Closure , pt : Type )(implicit ctx : Context ): Tree = {
421
421
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)
424
424
425
425
case block : untpd.Block =>
426
426
assert(false , " function literal are not properly formed as a block of DefDef and Closure. Found: " + tree.show + " Nesting block: " + block.show)
You can’t perform that action at this time.
0 commit comments