[primary constructors] support for avoid_types_as_parameter_names

Fixes: https://github.com/dart-lang/sdk/issues/62020

Change-Id: Id7f7f6d064a53803a98b35d990f771deaec6b9bb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/462862
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Auto-Submit: Phil Quitslund <pquitslund@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
This commit is contained in:
pq
2025-11-19 09:15:59 -08:00
committed by Commit Queue
parent b8ad514530
commit 95e1bb4479
@@ -157,6 +157,16 @@ typedef T = int;
);
}
test_primaryConstructorParameter() async {
await assertDiagnostics(
r'''
class A {}
class B(A);
''',
[lint(19, 1)],
);
}
test_super() async {
await assertDiagnostics(
r'''