-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Type error when returning Future in DDC and staticInterop #48835
Comments
Pinging @rileyporter since she's more experienced with the |
This looks like a bug in the static interop eraser. Minimal repro:
Looking at the relevant DDC output:
We can see that the eraser is not erasing the type parameter of the |
FYI - this is unique to instances where we use the |
Dart SDK version: 2.16.2 (stable) (Tue Mar 22 13:15:13 2022 +0100) on "macos_x64"
In the example below, DDC throws an error in
return ret;
complaining thatret
is not aResponse
, however, I just confirmed that it is with anassert
, also all prints confirm thatret
isResponse
.Works as expected in Dart2JS
error:
fetch
definition:The text was updated successfully, but these errors were encountered: