Skip to content

Flutter customer tests override operator == with a dynamic parameter. #51038

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
2 of 6 tasks
srawlins opened this issue Jan 17, 2023 · 4 comments
Closed
2 of 6 tasks

Flutter customer tests override operator == with a dynamic parameter. #51038

srawlins opened this issue Jan 17, 2023 · 4 comments
Labels
legacy-area-analyzer Use area-devexp instead. P1 A high priority bug; for example, a single project is unusable or has many test failures type-task A well-defined stand-alone task

Comments

@srawlins srawlins added P1 A high priority bug; for example, a single project is unusable or has many test failures type-task A well-defined stand-alone task legacy-area-analyzer Use area-devexp instead. labels Jan 17, 2023
srawlins added a commit to srawlins/flutter_portal that referenced this issue Jan 17, 2023
srawlins added a commit to flutter/cocoon that referenced this issue Jan 17, 2023
Make operator == override parameters no-nullable. See dart-lang/linter#3441

Work towards dart-lang/sdk#51038.
srawlins added a commit to srawlins/flutter_reactive_ble that referenced this issue Jan 17, 2023
@navaronbracke
Copy link

@srawlins If I'm not mistaken you should be using other is SomeType && <other checks here> instead of as?

Yes, you will get a warning from the unrelated_type_equality_checks lint but it fails at runtime with a type cast error.

@srawlins
Copy link
Member Author

I'm not sure what you're referring to. One of the PRs? Could you comment on the PR?

@navaronbracke
Copy link

@srawlins I commented on PhilipsHue/flutter_reactive_ble#677 to clarify.

Not sure about the cast in the flutter_cocoon PR, but per flutter/cocoon#2400 (comment) I think its fine?

auto-submit bot pushed a commit to flutter/cocoon that referenced this issue Jan 18, 2023
* == override parameters are non-nullable

Make operator == override parameters no-nullable. See dart-lang/linter#3441

Work towards dart-lang/sdk#51038.

* Update fake_google_account.dart
srawlins added a commit to flutter/tests that referenced this issue Jan 18, 2023
srawlins added a commit to flutter/tests that referenced this issue Jan 18, 2023
Taym95 pushed a commit to PhilipsHue/flutter_reactive_ble that referenced this issue Feb 7, 2023
* Make operator == override parameters no-nullable. See dart-lang/linter#3441

Work towards dart-lang/sdk#51038.
srawlins added a commit to flutter/tests that referenced this issue Feb 7, 2023
srawlins added a commit to flutter/tests that referenced this issue Feb 7, 2023
srawlins added a commit to flutter/tests that referenced this issue Feb 7, 2023
srawlins added a commit to flutter/tests that referenced this issue Feb 8, 2023
@srawlins
Copy link
Member Author

srawlins commented Feb 9, 2023

Customer tests are fixed.

@srawlins srawlins closed this as completed Feb 9, 2023
Taym95 pushed a commit to PhilipsHue/flutter_reactive_ble that referenced this issue Jul 6, 2023
* Make operator == override parameters no-nullable. See dart-lang/linter#3441

Work towards dart-lang/sdk#51038.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
legacy-area-analyzer Use area-devexp instead. P1 A high priority bug; for example, a single project is unusable or has many test failures type-task A well-defined stand-alone task
Projects
None yet
Development

No branches or pull requests

2 participants