-
Notifications
You must be signed in to change notification settings - Fork 166
Compiler warning in Dart 2.1.0 when verifying void returning methods #163
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
Thanks for filing! This is a known SDK bug: dart-lang/sdk#30470 (comment) |
You can work around this warning by casting to dynamic (which is free):
But you should not have to do this once the bug is fixed! |
Dart 2.1.0 is not released yet. Which 2.1.0-dev version is this? |
I think all of them |
This should be fixed by dart-lang/sdk@9bdf248. How can we verify that? |
I think this has been fixed. We haven't bumped into this in over a year. |
Looks like Dart 2.1.0 has a change that generates a compiler warning when you are using a void returning expression inside a method call dart-lang/sdk@9eac90d
So
Will cause
The text was updated successfully, but these errors were encountered: