-
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
[dart2wasm] Generics unexpected runtimeType when extends to nullable #55741
Comments
That is a bug. The inferred type argument of |
@lrhn to clarify: It should print |
It should print |
Don't know what I was thinking, yes of course the RTT is from the bottom class and it has to print the non-nullable one. I think the type parameter sharing we do doesn't consider nullability, we'll fix it. |
That sound ... plausible. |
cl/366940 should fix it. |
…allows Bug: #55741 Cherry-pick: https://dart-review.googlesource.com/c/sdk/+/366940 Cherry-pick-request: #55895 Change-Id: I69b31dfff0eddd437becae79a5ae49683906088d Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/369241 Reviewed-by: Ömer Ağacan <[email protected]> Commit-Queue: Martin Kustermann <[email protected]>
This code will print
AlwaysNullableData<String>
on other platform, but ondart2wasm
it printAlwaysNullableData<String?>
The text was updated successfully, but these errors were encountered: