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

Unified Diff: tests/language/strict_equal_test.dart

Issue 10977021: Fix incorrect strict not-equal comparison when both arguments are constants. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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 | « runtime/vm/intermediate_language.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/strict_equal_test.dart
===================================================================
--- tests/language/strict_equal_test.dart (revision 12879)
+++ tests/language/strict_equal_test.dart (working copy)
@@ -23,6 +23,9 @@
Expect.equals(2, test5(3));
Expect.equals(1, test6());
+
+ Expect.isFalse(test7());
+ Expect.equals(2, test8());
}
}
@@ -75,3 +78,16 @@
get5() {
return 5;
}
+
+test7() {
+ return null !== null;
+}
+
+
+test8() {
+ if (null !== null) {
+ return 1;
+ } else {
+ return 2;
+ }
+}
« no previous file with comments | « runtime/vm/intermediate_language.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698