Skip to content

False positive cascade_invocations #57721

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

Closed
lexaknyazev opened this issue Jun 13, 2018 · 3 comments
Closed

False positive cascade_invocations #57721

lexaknyazev opened this issue Jun 13, 2018 · 3 comments
Labels
devexp-linter Issues with the analyzer's support for the linter package legacy-area-analyzer Use area-devexp instead. linter-false-positive type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@lexaknyazev
Copy link
Contributor

Dart SDK 2.0.0-dev.61.0

import 'dart:html';

void main() {
  final _foo = querySelector('#foo');
  final _bar = querySelector('#bar');

  _foo.style.width = '1px';
  _bar.style.height = '1px'; // <--- cascade_invocations
}
@pq pq added the type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) label Jun 13, 2018
@pq
Copy link
Member

pq commented Jun 13, 2018

/cc @alexeieleusis

@pq pq added linter-false-positive type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) and removed type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) labels Jun 27, 2018
@apaatsio
Copy link

apaatsio commented Mar 4, 2019

I can't reproduce this. I believe this is the same bug as #57855 which has already been fixed.

❯ dartanalyzer --version
dartanalyzer version 2.2.0-edge.0a7dcf17eb5f2450480527d6ad1e201fb47f1e36
❯ dart --version
Dart VM version: 2.1.2-dev.0.0.flutter-0a7dcf17eb (Tue Feb 12 01:59:15 2019 +0000) on "linux_x64"

@pq
Copy link
Member

pq commented Mar 4, 2019

Thanks @apaatsio! This looks fixed and covered by dart-archive/linter#1328. Cheers!

@pq pq closed this as completed Mar 4, 2019
@devoncarew devoncarew added devexp-linter Issues with the analyzer's support for the linter package legacy-area-analyzer Use area-devexp instead. labels Nov 18, 2024
@devoncarew devoncarew transferred this issue from dart-archive/linter Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devexp-linter Issues with the analyzer's support for the linter package legacy-area-analyzer Use area-devexp instead. linter-false-positive type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

4 participants