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

Unified Diff: tests/compiler/dart2js/kernel/compile_from_dill_test.dart

Issue 2954123002: Remove special casing of == null (Closed)
Patch Set: Updated cf. comments 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
« no previous file with comments | « pkg/compiler/lib/src/ssa/kernel_ast_adapter.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/kernel/compile_from_dill_test.dart
diff --git a/tests/compiler/dart2js/kernel/compile_from_dill_test.dart b/tests/compiler/dart2js/kernel/compile_from_dill_test.dart
index 22bd53a8605f772a129ff61869c8660c81805c7a..72d8cd725a3e2333f652afe41fdb2b632211bb73 100644
--- a/tests/compiler/dart2js/kernel/compile_from_dill_test.dart
+++ b/tests/compiler/dart2js/kernel/compile_from_dill_test.dart
@@ -49,10 +49,17 @@ main() {
new Class('');
Class.staticField;
var x = null;
+ var y1 = x == null;
+ var y2 = null == x;
+ var z1 = x?.toString();
+ var z2 = x ?? y1;
+ var z3 = x ??= y2;
+ var w = x == null ? null : x.toString();
for (int i = 0; i < 10; i++) {
x = i;
if (i == 5) break;
}
+ print(x);
return x;
}
'''
« no previous file with comments | « pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698