avoid_shadowing_type_parameters

Group: style

Maturity: stable

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

Since info is static, may be stale
pedantic

View all Lint Rules

Using the Linter

AVOID shadowing type parameters.

BAD:

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

GOOD:

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