-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Unexpected analyze argument_type_not_assignable error #48395
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
If i write "final s = o;" just before then "expect(() => fnString(s), true);" has no analyze error. But it would be nice to not be obliged to write these additional lines. |
If you need my yaml config.
and my analysis options.
|
Beware, if you separate tests into two separate tests and make the variable "o" "final", the analyze bug disappears. |
The first issue ( The second issue ( |
Thanks a lot for your explanations and your work. |
I'll close this in favor of dart-lang/language#1536. |
Hello i have the some analyze errors on use of fnString() and fnInt() when i use this sample test code. Comments in code.
Type seems not promoted in lambda function arguments.
Source code is
Dart SDK version: 2.16.1 (stable) (Unknown timestamp) on "linux_x64"
The text was updated successfully, but these errors were encountered: