avoid_shadowing_type_parameters

Group: style

Maturity: stable

Dart SDK: >= 2.1.1-dev.0.0 • (Linter v0.1.72)

pedantic

View the Project on GitHub dart-lang/linter

AVOID shadowing type parameters.

BAD:

class A<T> {
  void fn<T>() {}
}

GOOD:

class A<T> {
  void fn<U>() {}
}