Index: test/codegen_expected/language/closure6_test.js |
diff --git a/test/codegen_expected/language/closure6_test.js b/test/codegen_expected/language/closure6_test.js |
index 3d1a50f7d95f13d6bb9a402dcb878942022cfd8e..0691a250efe21ce07aa922afc222763d7d8bcf39 100644 |
--- a/test/codegen_expected/language/closure6_test.js |
+++ b/test/codegen_expected/language/closure6_test.js |
@@ -8,16 +8,18 @@ dart_library.library('language/closure6_test', null, /* Imports */[ |
const dartx = dart_sdk.dartx; |
const expect$ = expect.expect; |
const closure6_test = Object.create(null); |
+ let VoidToint = () => (VoidToint = dart.constFn(dart.definiteFunctionType(core.int, [])))(); |
+ let VoidTonum = () => (VoidTonum = dart.constFn(dart.definiteFunctionType(core.num, [])))(); |
let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))(); |
closure6_test.A = class A extends core.Object { |
foo() { |
function length() { |
return 400; |
} |
- dart.fn(length, VoidTodynamic()); |
+ dart.fn(length, VoidToint()); |
let box_0 = 28; |
let x = 29; |
- let f = dart.fn(() => dart.dsend(dart.dsend(dart.dsend(length(), '+', box_0), '+', x), '+', this.bar()), VoidTodynamic()); |
+ let f = dart.fn(() => dart.notNull(length()) + box_0 + x + dart.notNull(core.num._check(this.bar())), VoidTonum()); |
return f(); |
} |
bar() { |