Index: test/codegen_expected/language/async_star_regression_2238_test.js |
diff --git a/test/codegen_expected/language/async_star_regression_2238_test.js b/test/codegen_expected/language/async_star_regression_2238_test.js |
index 0a4ef08ffa1d026173b386e2291365b85d39626e..156bdaf8f87b8db44632822b543f5b76950edfa9 100644 |
--- a/test/codegen_expected/language/async_star_regression_2238_test.js |
+++ b/test/codegen_expected/language/async_star_regression_2238_test.js |
@@ -5,15 +5,19 @@ dart_library.library('language/async_star_regression_2238_test', null, /* Import |
], function load__async_star_regression_2238_test(exports, dart_sdk, async_helper, expect) { |
'use strict'; |
const core = dart_sdk.core; |
+ const async = dart_sdk.async; |
const _interceptors = dart_sdk._interceptors; |
const dart = dart_sdk.dart; |
const dartx = dart_sdk.dartx; |
const async_helper$ = async_helper.async_helper; |
const expect$ = expect.expect; |
const async_star_regression_2238_test = Object.create(null); |
+ let StreamOfint = () => (StreamOfint = dart.constFn(async.Stream$(core.int)))(); |
let JSArrayOfint = () => (JSArrayOfint = dart.constFn(_interceptors.JSArray$(core.int)))(); |
+ let ListOfint = () => (ListOfint = dart.constFn(core.List$(core.int)))(); |
+ let VoidToStreamOfint = () => (VoidToStreamOfint = dart.constFn(dart.definiteFunctionType(StreamOfint(), [])))(); |
+ let ListOfintTodynamic = () => (ListOfintTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [ListOfint()])))(); |
let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))(); |
- let dynamicTodynamic = () => (dynamicTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [dart.dynamic])))(); |
async_star_regression_2238_test.main = function() { |
function f() { |
return dart.asyncStar(function*(stream) { |
@@ -22,14 +26,14 @@ dart_library.library('language/async_star_regression_2238_test', null, /* Import |
if (stream.add(0)) return; |
yield; |
} |
- }, dart.dynamic); |
+ }, core.int); |
} |
- dart.fn(f, VoidTodynamic()); |
+ dart.fn(f, VoidToStreamOfint()); |
async_helper$.asyncStart(); |
- dart.dsend(dart.dsend(f(), 'toList'), 'then', dart.fn(list => { |
- expect$.Expect.listEquals(JSArrayOfint().of([0]), core.List._check(list)); |
+ f().toList().then(dart.dynamic)(dart.fn(list => { |
+ expect$.Expect.listEquals(JSArrayOfint().of([0]), list); |
async_helper$.asyncEnd(); |
- }, dynamicTodynamic())); |
+ }, ListOfintTodynamic())); |
}; |
dart.fn(async_star_regression_2238_test.main, VoidTodynamic()); |
// Exports: |