| 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 ac762c4bf2dc334a0df4d5c96ca901fc199565c0..02993c54c813e26e65e2c5c4c92d88c4f4660fff 100644
|
| --- a/pkg/analyzer/test/generated/static_type_warning_code_test.dart
|
| +++ b/pkg/analyzer/test/generated/static_type_warning_code_test.dart
|
| @@ -1917,6 +1917,26 @@ f() {
|
| [StaticTypeWarningCode.FOR_IN_OF_INVALID_TYPE]);
|
| }
|
|
|
| + void test_forIn_object() {
|
| + assertNoErrorsInCode(
|
| + '''
|
| +f() {
|
| + Object o; // Could be [].
|
| + for (var i in o) {}
|
| +}
|
| +''');
|
| + }
|
| +
|
| + void test_forIn_dynamic() {
|
| + assertNoErrorsInCode(
|
| + '''
|
| +f() {
|
| + dynamic d; // Could be [].
|
| + for (var i in d) {}
|
| +}
|
| +''');
|
| + }
|
| +
|
| void test_forIn_declaredVariableWrongType() {
|
| assertErrorsInCode(
|
| '''
|
|
|