-
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
VM: Support generalized void #30516
Comments
A sample code in flutter that could use this feature to avoid strong mode errors
|
This is part of implementing generalized void, see #30516. Add regression test. Update status files. Change-Id: I0b4730734238b4dc463ddd7835e30ea8a2bd4300 Bug: Reviewed-on: https://dart-review.googlesource.com/34224 Commit-Queue: Régis Crelier <regis@google.com> Reviewed-by: Siva Annamalai <asiva@google.com>
The VM parser has been fixed to support the sample above involving void as the type argument of a generic function, as in |
How about the following cases
But when I run the VM parser on these examples I get an error. |
These cases have not been fixed yet, the reason I left the bug opened. Are we supposed to support this now? My understanding was that only void as type argument was supported at this time. I can start working on it if full support is needed now. |
I don't know yet if these cases are critical will let you know if I run into these patterns in flutter. |
The sooner we support the full new syntax, the sooner we can start migrating the libraries to use it. |
This is the VM specific issue for issue #30176, which contains the details.
This issue was created in order to have a suitable issue number to refer to in status files.
The implementation of support for generalized void in the VM should be coordinated with that of other tools, and in particular most or all of it may be provided by the common front end. Hence, please do not start implementing this in the VM at this point.
The text was updated successfully, but these errors were encountered: