blob: 3c21da3d3ae9048825e75b47de4a667fc501e984 [file] [log] [blame]
// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:test_reflective_loader/test_reflective_loader.dart';
import '../rule_test_support.dart';
main() {
defineReflectiveSuite(() {
defineReflectiveTests(AvoidUnusedConstructorParametersTest);
});
}
@reflectiveTest
class AvoidUnusedConstructorParametersTest extends LintRuleTest {
@override
String get lintRule => 'avoid_unused_constructor_parameters';
test_super() async {
await assertNoDiagnostics(r'''
class A {
String a;
String b;
A(this.a, this.b);
}
class B extends A {
B(super.a, super.b);
}
''');
}
}