-
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
Dart does not throw error if function type alias type parameter does not match bounds #42436
Comments
/cc @crelier |
This is probably a front-end issue if compile-time error is missing. |
Likely related to #41684 |
Given that the example does not contain any non-function type aliases (only a regular type alias), I think this issue should be removed from the non-function type alias epic. |
@eernstg is this still an issue? it's independent, but perhaps we should fix as part of this release? |
This appears to be fixed some time ago. This is what I see at the current HEAD.
I'm closing the issue. Feel free to re-open if needed. |
Thanks @stefantsov! |
Dart VM version: 2.9.0-17.0.dev (dev) (Thu Jun 18 10:22:39 2020 +0200) on "windows_x64"
The following source code example passes with dart and throws a compile error with analyzer:
Seems like dart should throw a compile error here too.
Sample output is:
The text was updated successfully, but these errors were encountered: