Linter: False positive unrelated_type_equality_checks for certain generics cases

Created on 20 May 2019  路  2Comments  路  Source: dart-lang/linter

I found a false positive for unrelated_type_equality_checks similar to #1297 but more specific.

class Foo<T> {
  Bar<T> bar;

  bool test(Baz baz) => bar == baz; // false positive here
}

class Bar<T> {}

class Baz extends Bar<int> {}
bug false positive core

Most helpful comment

Hey now, I never said I _enjoyed_ working on unrelated_type_equality_checks. 馃槢

All 2 comments

fyi @srawlins who's fixed a bunch of issues in this one recently.

Hey now, I never said I _enjoyed_ working on unrelated_type_equality_checks. 馃槢

Was this page helpful?
0 / 5 - 0 ratings