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

Unified Diff: lib/src/compiler/reify_coercions.dart

Issue 1929283002: Fix for messed-up short-circuit operators. (Closed) Base URL: https://github.com/dart-lang/dev_compiler@master
Patch Set: rerun presumbit Created 4 years, 8 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 | « lib/runtime/dart_sdk.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/compiler/reify_coercions.dart
diff --git a/lib/src/compiler/reify_coercions.dart b/lib/src/compiler/reify_coercions.dart
index 87ea5e00003851ba9b1cf15a86ea8f7ec027405a..5d91aefdb57081dcabb07d0a2483c7d6437c2329 100644
--- a/lib/src/compiler/reify_coercions.dart
+++ b/lib/src/compiler/reify_coercions.dart
@@ -45,6 +45,12 @@ class CoercionReifier extends analyzer.GeneralizingAstVisitor<Object> {
}
@override
+ visitParenthesizedExpression(ParenthesizedExpression node) {
+ super.visitParenthesizedExpression(node);
+ node.staticType = node.expression.staticType;
+ }
+
+ @override
visitForEachStatement(ForEachStatement node) {
// Visit other children.
node.iterable.accept(this);
« no previous file with comments | « lib/runtime/dart_sdk.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698