| Index: tests/compiler/dart2js/serialization/test_data.dart
|
| diff --git a/tests/compiler/dart2js/serialization/test_data.dart b/tests/compiler/dart2js/serialization/test_data.dart
|
| index c32be573e313f2b9b905e742902e4ed9ea369d26..20f39e8c5b9abffd5828450bd1522eff21e551a1 100644
|
| --- a/tests/compiler/dart2js/serialization/test_data.dart
|
| +++ b/tests/compiler/dart2js/serialization/test_data.dart
|
| @@ -643,6 +643,23 @@ main() {}
|
| import 'dart:indexed_db';
|
| ''',
|
| }),
|
| +
|
| + const Test('Deferred static access', const {},
|
| + preserializedSourceFiles: const {
|
| + 'main.dart': '''
|
| +import 'b.dart' deferred as prefix;
|
| +
|
| +main() => prefix.loadLibrary().then((_) => prefix.test2());
|
| +''',
|
| + 'b.dart': '''
|
| +test2() => x;
|
| +var x = const ConstClass(const ConstClass(1));
|
| +class ConstClass {
|
| + final x;
|
| + const ConstClass(this.x);
|
| +}
|
| +''',
|
| + }),
|
| ];
|
|
|
| class Test {
|
|
|