Index: test/codegen_expected/language/range_analysis2_test.js |
diff --git a/test/codegen_expected/language/range_analysis2_test.js b/test/codegen_expected/language/range_analysis2_test.js |
index ec0159e0b573379c97bf06483f27266c07da2c75..9de6f37c0fedc721a4d33b6080ec24130b848bdb 100644 |
--- a/test/codegen_expected/language/range_analysis2_test.js |
+++ b/test/codegen_expected/language/range_analysis2_test.js |
@@ -10,15 +10,16 @@ dart_library.library('language/range_analysis2_test', null, /* Imports */[ |
const expect$ = expect.expect; |
const range_analysis2_test = Object.create(null); |
let JSArrayOfint = () => (JSArrayOfint = dart.constFn(_interceptors.JSArray$(core.int)))(); |
- let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))(); |
+ let VoidToint = () => (VoidToint = dart.constFn(dart.definiteFunctionType(core.int, [])))(); |
let dynamicTobool = () => (dynamicTobool = dart.constFn(dart.definiteFunctionType(core.bool, [dart.dynamic])))(); |
+ let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))(); |
range_analysis2_test.main = function() { |
let a = 0; |
let b = JSArrayOfint().of([1]); |
function foo() { |
return dart.notNull(b[dartx.get](a--)) + dart.notNull(b[dartx.get](a)); |
} |
- dart.fn(foo, VoidTodynamic()); |
+ dart.fn(foo, VoidToint()); |
expect$.Expect.throws(foo, dart.fn(e => core.RangeError.is(e), dynamicTobool())); |
}; |
dart.fn(range_analysis2_test.main, VoidTodynamic()); |