We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64584c1 commit 4d3895aCopy full SHA for 4d3895a
pkg/dart2wasm/lib/sync_star.dart
@@ -264,11 +264,7 @@ class SyncStarCodeGenerator extends CodeGenerator {
264
FunctionNode functionNode, Context? context, w.BaseFunction resumeFun) {
265
// Instantiate a [_SyncStarIterable] containing the context and resume
266
// function for this `sync*` function.
267
- DartType returnType = functionNode.returnType;
268
- DartType elementType = returnType is InterfaceType &&
269
- returnType.classNode == translator.coreTypes.iterableClass
270
- ? returnType.typeArguments.single
271
- : DynamicType();
+ DartType elementType = functionNode.emittedValueType!;
272
translator.functions.allocateClass(syncStarIterableInfo.classId);
273
b.i32_const(syncStarIterableInfo.classId);
274
b.i32_const(initialIdentityHash);
0 commit comments