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

Unified Diff: pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart

Issue 2940703002: Fix top level type inference for binary operators. (Closed)
Patch Set: Created 3 years, 6 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
Index: pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart
diff --git a/pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart b/pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart
index 5744eaf77906cc1c61a773352abec151c4ec1727..85dcbaa81ae60778bcaf34d6aa582dca09c3abab 100644
--- a/pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart
+++ b/pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart
@@ -1273,6 +1273,9 @@ class KernelMethodInvocation extends MethodInvocation
// The inference dependencies are the inference dependencies of the
// receiver.
collector.collectDependencies(receiver);
+ if (name == '+' || name == '-' || name == '*' || name == '%') {
scheglov 2017/06/13 19:46:51 Is it unsafe to use identical() here?
Paul Berry 2017/06/13 20:06:39 Oops, I should have thought of that. identical()
+ collector.collectDependencies(arguments.positional[0]);
+ }
}
@override

Powered by Google App Engine
This is Rietveld 408576698