[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:
@@ -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'''
|
||||
|
||||
Reference in New Issue
Block a user