diff --git a/pkg/dart2bytecode/lib/local_vars.dart b/pkg/dart2bytecode/lib/local_vars.dart index 3d2a7951762..82aefbda612 100644 --- a/pkg/dart2bytecode/lib/local_vars.dart +++ b/pkg/dart2bytecode/lib/local_vars.dart @@ -936,6 +936,7 @@ class _Allocator extends RecursiveVisitor { _allocateParameter(_currentFrame.receiverVar!, 0); if (_currentFrame.capturedReceiverVar != null) { _allocateVariable(_currentFrame.capturedReceiverVar!); + _currentFrame.hasCapturedParameters = true; } } _allocateSpecialVariables();