diff --git a/pkg/analysis_server/test/src/services/correction/assist/convert_into_expression_body_test.dart b/pkg/analysis_server/test/src/services/correction/assist/convert_into_expression_body_test.dart index ca39c1031eb..aad1987bc25 100644 --- a/pkg/analysis_server/test/src/services/correction/assist/convert_into_expression_body_test.dart +++ b/pkg/analysis_server/test/src/services/correction/assist/convert_into_expression_body_test.dart @@ -294,6 +294,24 @@ var ^V = 42; await assertNoAssist(); } + Future test_primaryConstructorBody_brace() async { + await resolveTestCode(''' +class A() { + this ^{} +} +'''); + await assertNoAssist(); + } + + Future test_primaryConstructorBody_keyword() async { + await resolveTestCode(''' +class A() { + ^this {} +} +'''); + await assertNoAssist(); + } + Future test_topFunction_onReturnStatement() async { await resolveTestCode(''' fff() {