-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Implement instantiate-to-bounds in the VM #32076
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
Comments
This is only a problem with bounds that reference type parameters from the same type parameter list, e.g.:
In this case, until the bounds finalized, the type parameters will be substituted with |
I can't reproduce this problem. Consider:
The error with
|
Related: #31581 |
When the VM reads the bound of a type parameter on a local function from kernel, it does it using this code, which ignores the actual type and always puts dynamic:
sdk/runtime/vm/compiler/frontend/kernel_binary_flowgraph.cc
Lines 2573 to 2578 in cca7b44
This bug is caught by the test
language_2/generic_function_bounds_test
after the crash is fixed in https://dart-review.googlesource.com/c/sdk/+/39160The text was updated successfully, but these errors were encountered: