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

Unified Diff: tests/compiler/dart2js/simple_inferrer_test.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 | « sdk/lib/_internal/compiler/implementation/inferrer/inferrer_visitor.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/simple_inferrer_test.dart
===================================================================
--- tests/compiler/dart2js/simple_inferrer_test.dart (revision 31124)
+++ tests/compiler/dart2js/simple_inferrer_test.dart (working copy)
@@ -538,6 +538,10 @@
return a;
}
+testReturnNotEquals() {
+ return new A() != 54;
+}
+
testReturnInvokeDynamicGetter() => new A().myFactory();
var topLevelConstList = const [42];
@@ -695,6 +699,7 @@
testReturnNull4();
testReturnNull5();
testReturnNull6();
+ testReturnNotEquals();
}
""";
@@ -837,5 +842,6 @@
checkReturn('testReturnNull4', typesTask.nullType);
checkReturn('testReturnNull5', typesTask.nullType);
checkReturn('testReturnNull6', typesTask.dynamicType);
+ checkReturn('testReturnNotEquals', typesTask.boolType);
}));
}
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/inferrer/inferrer_visitor.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698