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

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

Issue 894453003: NPE fix in ExitDetector visitor- in analyzer pkg (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 months 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/all_the_rest_test.dart
diff --git a/pkg/analyzer/test/generated/all_the_rest_test.dart b/pkg/analyzer/test/generated/all_the_rest_test.dart
index 3c1f95b3b68fc17aa634c543f311ba68ad079a87..7199b94b0bf4f940bf098e5e5e7c4f441358521b 100644
--- a/pkg/analyzer/test/generated/all_the_rest_test.dart
+++ b/pkg/analyzer/test/generated/all_the_rest_test.dart
@@ -6892,6 +6892,14 @@ class ExitDetectorTest extends ParserTestCase {
_assertTrue("v = throw '';");
}
+ void test_await_false() {
+ _assertFalse("await x;");
+ }
+
+ void test_await_throw_true() {
+ _assertTrue("bool b = await (throw '' || true);");
+ }
+
void test_binaryExpression_and() {
_assertFalse("a && b;");
}
« 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