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

Unified Diff: test/codegen/expect/notnull.js

Issue 1752193002: Add a few more known non-null cases (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 10 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 | « test/codegen/expect/methods.js ('k') | test/codegen/expect/unittest.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/notnull.js
diff --git a/test/codegen/expect/notnull.js b/test/codegen/expect/notnull.js
index bd94bc15666094f921f5b3476d31bcbd1cf532c5..6405db8860c347d94533d4d679d8ec0076544378 100644
--- a/test/codegen/expect/notnull.js
+++ b/test/codegen/expect/notnull.js
@@ -224,6 +224,21 @@ dart_library.library('notnull', null, /* Imports */[
}
dart.fn(controlFlow);
+ function cascadesOnNull() {
+ let x = null;
+ core.print(dart.hashCode(((() => {
+ dart.toString(x);
+ dart.runtimeType(x);
+ return x;
+ })())));
+ let y = null;
+ core.print(dart.hashCode(((() => {
+ dart.toString(y);
+ dart.runtimeType(y);
+ return y;
+ })())));
+ }
+ dart.fn(cascadesOnNull);
function main() {
intAssignments();
doubleAssignments();
@@ -237,6 +252,7 @@ dart_library.library('notnull', null, /* Imports */[
calls();
localEscapes();
controlFlow();
+ cascadesOnNull();
nullableCycle();
nonNullableCycle();
}
@@ -258,5 +274,6 @@ dart_library.library('notnull', null, /* Imports */[
exports.calls = calls;
exports.localEscapes = localEscapes;
exports.controlFlow = controlFlow;
+ exports.cascadesOnNull = cascadesOnNull;
exports.main = main;
});
« no previous file with comments | « test/codegen/expect/methods.js ('k') | test/codegen/expect/unittest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698