[CP] Fix WASM error caused by incorrect return type #55837
Labels
area-dart2wasm
Issues for the dart2wasm compiler.
cherry-pick-approved
Label for approved cherrypick request
cherry-pick-review
Issue that need cherry pick triage to approve
Commit(s) to merge
345b437
Target
beta
Prepared changelist for beta/stable
https://dart-review.googlesource.com/c/sdk/+/368180
Issue Description
WebAssembly error
was caused by the incorrect return type generated by dart2wasm.
What is the fix
TFA was fixed to avoid inferring nullable return types for methods with non-nullable static return types.
Why cherry-pick
This bug prevents running an app on WASM.
Risk
Low
Issue link(s)
flutter/flutter#148617
Extra Info
No response
The text was updated successfully, but these errors were encountered: