90127334ea
There was a rare mismatch between arguments and parameters when inlining a constructor body. The full arguments at the call site of a constructor body (always in a generative constructor factory) and the parameters at inlining would not agree on needing a 'box' for the constructor's closed-over mutated variables (parameters and locals) when the box was needed only for locals closed over in an assertion. The fix is to make the condition for accepting a box match the test for generating the box in the caller. Bug: 45943 Change-Id: I3b056cb710ffac72bec6943809e04472a838e5bf Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/198741 Reviewed-by: Mayank Patke <fishythefish@google.com> Commit-Queue: Stephen Adams <sra@google.com>