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

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

Issue 977613002: Make int and double nullable by default (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Optimize away some nonnull checks 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/constructors.js
diff --git a/test/codegen/expect/constructors.js b/test/codegen/expect/constructors.js
index 01653b26c53cf90912efd0bd61e6b882f810a276..0b423080ed714b63b28c728d1832a926a622b761 100644
--- a/test/codegen/expect/constructors.js
+++ b/test/codegen/expect/constructors.js
@@ -77,22 +77,22 @@ var constructors;
}
class M extends L {
M$named(x) {
- super.L(x + 42);
+ super.L(dart.notNull(x) + 42);
}
}
dart.defineNamedConstructor(M, 'named');
class N extends M {
N$named(y) {
- super.M$named(y + 100);
+ super.M$named(dart.notNull(y) + 100);
}
}
dart.defineNamedConstructor(N, 'named');
class P extends N {
P(z) {
- super.N$named(z + 9000);
+ super.N$named(dart.notNull(z) + 9000);
}
P$foo(x) {
- this.P(x + 42);
+ this.P(dart.notNull(x) + 42);
}
P$bar() {
this.P$foo(1);

Powered by Google App Engine
This is Rietveld 408576698