| Index: pkg/kernel/test/closures/suite.dart
|
| diff --git a/pkg/kernel/test/closures/suite.dart b/pkg/kernel/test/closures/suite.dart
|
| index 76e2c5117b044678cc22255351b7fdca6c535425..a7850f7679bde6ef610d24279401f131e8aabe47 100644
|
| --- a/pkg/kernel/test/closures/suite.dart
|
| +++ b/pkg/kernel/test/closures/suite.dart
|
| @@ -15,8 +15,6 @@ import 'package:kernel/analyzer/loader.dart'
|
|
|
| import 'package:kernel/target/targets.dart' show Target, TargetFlags, getTarget;
|
|
|
| -import 'package:kernel/repository.dart' show Repository;
|
| -
|
| import 'kernel_chain.dart'
|
| show MatchExpectation, Print, ReadDill, SanityCheck, WriteDill;
|
|
|
| @@ -70,7 +68,7 @@ class TestContext extends ChainContext {
|
| ];
|
|
|
| Future<DartLoader> createLoader() async {
|
| - Repository repository = new Repository();
|
| + Program repository = new Program();
|
| return new DartLoader(repository, options, await loadPackagesFile(packages),
|
| dartSdk: dartSdk);
|
| }
|
| @@ -144,7 +142,8 @@ class Kernel extends Step<TestDescription, Program, TestContext> {
|
| "vm", new TargetFlags(strongMode: testContext.options.strongMode));
|
| String path = description.file.path;
|
| Uri uri = Uri.base.resolve(path);
|
| - Program program = loader.loadProgram(uri, target: target);
|
| + loader.loadProgram(uri, target: target);
|
| + var program = loader.program;
|
| for (var error in loader.errors) {
|
| return fail(program, "$error");
|
| }
|
|
|