| Index: tests/compiler/dart2js/private_test.dart
|
| diff --git a/tests/compiler/dart2js/private_test.dart b/tests/compiler/dart2js/private_test.dart
|
| index eba8e31154857e0514dc319b29a8d7cf32a4bb14..fbfba80483d8827808e3839197f7d535f5cce023 100644
|
| --- a/tests/compiler/dart2js/private_test.dart
|
| +++ b/tests/compiler/dart2js/private_test.dart
|
| @@ -72,7 +72,8 @@ analyze(String text, [expectedWarnings]) {
|
| Uri uri = Uri.parse('src:public');
|
| compiler.registerSource(uri, source);
|
| return compiler.run(uri).then((_) {
|
| - compareWarningKinds(text, expectedWarnings, compiler.warnings);
|
| + DiagnosticCollector collector = compiler.diagnosticCollector;
|
| + compareWarningKinds(text, expectedWarnings, collector.warnings);
|
| });
|
| };
|
| }
|
|
|