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

Unified Diff: sdk/lib/_internal/compiler/implementation/inferrer/inferrer_visitor.dart

Issue 108613003: != is a shortcut to == true, so it returns a boolean. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years 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 | « no previous file | tests/compiler/dart2js/simple_inferrer_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/inferrer/inferrer_visitor.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/inferrer/inferrer_visitor.dart (revision 31124)
+++ sdk/lib/_internal/compiler/implementation/inferrer/inferrer_visitor.dart (working copy)
@@ -847,6 +847,9 @@
|| '!==' == op.source) {
node.visitChildren(this);
return types.boolType;
+ } else if ('!=' == op.source) {
+ visitDynamicSend(node);
+ return types.boolType;
} else {
// Binary operator.
return visitDynamicSend(node);
« no previous file with comments | « no previous file | tests/compiler/dart2js/simple_inferrer_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698