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
Incorrect hint from analyzer #20579
Comments
cc @larsbak. |
Added this to the 1.7 milestone. |
cc @bwilkerson. |
For those unfamiliar with the code in question, here are the relationships at issue:
closureData.forEachCapturedVariable((variable, field) {
I can see a few ways we could fix this:
abstract class CapturedVariable extends Element {} Personally I would favor alternative 3. |
Removed Priority-High label. |
Since this is assigned to the 1.8 milestone, I'm bumping the priority to high. Feel free to lower the priority and remove the 1.8 milestone marker. Removed Priority-Medium label. |
Removed the owner. |
Removed this from the 1.8 milestone. |
Added Priority-Medium label. |
Assumed stale. |
[hint] The argument type 'CapturedVariable' cannot be assigned to the parameter type 'Element' (.../dart/sdk/lib/_internal/compiler/implementation/inferrer/simple_types_inferrer.dart, line 469, col 36)
The above hint isn't correct. The code is untyped, and there exist types that implement both Element and CapturedVariable.
The text was updated successfully, but these errors were encountered: