[CP] Please cherry pick da18c7c9a7080cc0ccd8455e1df85289b6445174 into the beta branch #49493
Labels
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
cherry-pick-approved
Label for approved cherrypick request
merge-to-beta
Commit(s) to merge
da18c7c
Target
beta
Issue Description
Future produced by async function has wrong type argument
This is a regression that was introduced in the new restructured async implementation.
What is the fix
In order to create a Future for the result of async closure,
closure needs to instantiate a type argument of its result type.
The result type may reference type arguments of enclosing function or
class and scope builder should visit closure's result type
in order to capture receiver or type arguments variable of parent
factory.
https://dart-review.googlesource.com/c/sdk/+/251320
Why cherry-pick
It is a regression
Risk
low
Issue link(s)
#49424
Extra Info
The CL merges cleanly into the beta channel.
The text was updated successfully, but these errors were encountered: