| Index: pkg/analysis_server/test/services/correction/assist_test.dart
|
| diff --git a/pkg/analysis_server/test/services/correction/assist_test.dart b/pkg/analysis_server/test/services/correction/assist_test.dart
|
| index 6d01cbbcc001a55636e1deb68da0799f5efaa1eb..2885f27d20e98ec703cb312d581197b21f0c9957 100644
|
| --- a/pkg/analysis_server/test/services/correction/assist_test.dart
|
| +++ b/pkg/analysis_server/test/services/correction/assist_test.dart
|
| @@ -794,6 +794,26 @@ main() {
|
| assertNoAssistAt('vvv =', DartAssistKind.ASSIGN_TO_LOCAL_VARIABLE);
|
| }
|
|
|
| + void test_assignToLocalVariable_inClosure() {
|
| + resolveTestUnit(r'''
|
| +main() {
|
| + print(() {
|
| + 12345;
|
| + });
|
| +}
|
| +''');
|
| + assertHasAssistAt(
|
| + '345',
|
| + DartAssistKind.ASSIGN_TO_LOCAL_VARIABLE,
|
| + '''
|
| +main() {
|
| + print(() {
|
| + var i = 12345;
|
| + });
|
| +}
|
| +''');
|
| + }
|
| +
|
| void test_assignToLocalVariable_invocationArgument() {
|
| resolveTestUnit(r'''
|
| main() {
|
|
|