| Index: pkg/analyzer/test/generated/static_warning_code_test.dart
|
| diff --git a/pkg/analyzer/test/generated/static_warning_code_test.dart b/pkg/analyzer/test/generated/static_warning_code_test.dart
|
| index 03bfb978378947ff0dc6485f4b0b19ffc25da88e..769cebb9206d2bab1159f247a942e87af417c730 100644
|
| --- a/pkg/analyzer/test/generated/static_warning_code_test.dart
|
| +++ b/pkg/analyzer/test/generated/static_warning_code_test.dart
|
| @@ -3308,7 +3308,18 @@ f(var p) {
|
| }
|
| }''');
|
| resolve(source);
|
| - assertErrors(source, [StaticWarningCode.TYPE_TEST_NON_TYPE]);
|
| + assertErrors(source, [StaticWarningCode.TYPE_TEST_WITH_NON_TYPE]);
|
| + verify([source]);
|
| + }
|
| +
|
| + void test_typeTestWithUndefinedName() {
|
| + Source source = addSource(r'''
|
| +f(var p) {
|
| + if (p is A) {
|
| + }
|
| +}''');
|
| + resolve(source);
|
| + assertErrors(source, [StaticWarningCode.TYPE_TEST_WITH_UNDEFINED_NAME]);
|
| verify([source]);
|
| }
|
|
|
|
|