Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Unified Diff: pkg/analyzer/test/generated/static_warning_code_test.dart

Issue 755313003: Fix for issue 20930 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer/lib/src/generated/resolver.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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]);
}
« no previous file with comments | « pkg/analyzer/lib/src/generated/resolver.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698