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

Unified Diff: tests/language/type_promotion_logical_and_test.dart

Issue 85633002: Handle parenthesized expression in type promotion. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix comments. Created 7 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 | « tests/language/type_promotion_closure_test.dart ('k') | tests/language/type_promotion_parameter_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/type_promotion_logical_and_test.dart
diff --git a/tests/language/type_promotion_logical_and_test.dart b/tests/language/type_promotion_logical_and_test.dart
index 92a4758a02b8c9e9ad27b5ab9500a2ee6ef0d167..1ee6296060742c2ec1282cb3af01bd2bc91a4a90 100644
--- a/tests/language/type_promotion_logical_and_test.dart
+++ b/tests/language/type_promotion_logical_and_test.dart
@@ -33,6 +33,10 @@ void main() {
b = a.d; /// 02: static type warning
a = null;
}
+ if ((((a) is D) && (b = (a).d))) {
+ b = a.d; /// 03: static type warning
+ a = null;
+ }
if (f(a = null) && a is D) {
b = a.d;
}
« no previous file with comments | « tests/language/type_promotion_closure_test.dart ('k') | tests/language/type_promotion_parameter_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698