| 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 67ec5def82405128ec783ab1bdd5f40d20cc4bee..02c588b1e947f7c0a159d61c7585d73723426cb3 100644
|
| --- a/pkg/analyzer/test/generated/static_type_warning_code_test.dart
|
| +++ b/pkg/analyzer/test/generated/static_type_warning_code_test.dart
|
| @@ -220,6 +220,17 @@ f([String x = 0]) {
|
| verify([source]);
|
| }
|
|
|
| + void test_invalidAssignment_dynamic() {
|
| + Source source = addSource(r'''
|
| +main() {
|
| + dynamic = 1;
|
| +}
|
| +''');
|
| + resolve(source);
|
| + assertErrors(source, [StaticTypeWarningCode.INVALID_ASSIGNMENT]);
|
| + verify([source]);
|
| + }
|
| +
|
| void test_invalidAssignment_instanceVariable() {
|
| Source source = addSource(r'''
|
| class A {
|
|
|