| Index: pkg/analyzer/test/src/task/dart_test.dart
|
| diff --git a/pkg/analyzer/test/src/task/dart_test.dart b/pkg/analyzer/test/src/task/dart_test.dart
|
| index fb2602542349cc357383c9643134884182841869..3fecdd141ba8332f1e005dc9591d638811fd3616 100644
|
| --- a/pkg/analyzer/test/src/task/dart_test.dart
|
| +++ b/pkg/analyzer/test/src/task/dart_test.dart
|
| @@ -4410,6 +4410,27 @@ main(int p) {
|
| ]);
|
| }
|
|
|
| + test_perform_ConstantValidator_duplicateFields() {
|
| + Source source = newSource(
|
| + '/test.dart',
|
| + '''
|
| +class Test {
|
| + final int x = 1;
|
| + final int x = 2;
|
| + const Test();
|
| +}
|
| +
|
| +main() {
|
| + const Test();
|
| +}
|
| +''');
|
| + LibrarySpecificUnit target = new LibrarySpecificUnit(source, source);
|
| + computeResult(target, VERIFY_ERRORS, matcher: isVerifyUnitTask);
|
| + // validate
|
| + _fillErrorListener(VERIFY_ERRORS);
|
| + errorListener.assertNoErrors();
|
| + }
|
| +
|
| test_perform_directiveError() {
|
| Source source = newSource(
|
| '/test.dart',
|
|
|