| Index: pkg/analyzer/test/generated/static_type_warning_code_test.dart
|
| diff --git a/pkg/analyzer/test/generated/static_type_warning_code_test.dart b/pkg/analyzer/test/generated/static_type_warning_code_test.dart
|
| index 83ffb27b5cd8179dd3f27c858a290f0d0717677e..019c07eff67ade35090dadeaca0d3567ce30a1ce 100644
|
| --- a/pkg/analyzer/test/generated/static_type_warning_code_test.dart
|
| +++ b/pkg/analyzer/test/generated/static_type_warning_code_test.dart
|
| @@ -345,6 +345,16 @@ main() {
|
| verify([source]);
|
| }
|
|
|
| + void test_invalidAssignment_functionExpressionInvocation() {
|
| + Source source = addSource('''
|
| +main() {
|
| + String x = (() => 5)();
|
| +}''');
|
| + resolve(source);
|
| + assertErrors(source, [StaticTypeWarningCode.INVALID_ASSIGNMENT]);
|
| + verify([source]);
|
| + }
|
| +
|
| void test_invalidAssignment_instanceVariable() {
|
| Source source = addSource(r'''
|
| class A {
|
|
|