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

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

Issue 977613002: Make int and double nullable by default (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: actually upload changes Created 5 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
Index: test/codegen/expect/fieldtest.js
diff --git a/test/codegen/expect/fieldtest.js b/test/codegen/expect/fieldtest.js
index d19e22834e28bfd5d7ae366231a9e39c0fea834f..f2cc022fea94f8795f579b743d7f019f23d133b3 100644
--- a/test/codegen/expect/fieldtest.js
+++ b/test/codegen/expect/fieldtest.js
@@ -9,9 +9,9 @@ var fieldtest;
let B$ = dart.generic(function(T) {
class B extends dart.Object {
B() {
- this.x = dart.as(null, core.int);
+ this.x = null;
this.y = null;
- this.z = dart.as(null, T);
+ this.z = null;
}
}
return B;
@@ -37,7 +37,7 @@ var fieldtest;
}
dart.defineLazyProperties(exports, {
get y() {
- return compute() + 444;
+ return dart.notNull(compute()) + 444;
},
set y(_) {}
});

Powered by Google App Engine
This is Rietveld 408576698