blob: 378608c69f1a7992f6a76eaefa3be437d0372aaa [file] [log] [blame]
# Copyright (c) 2019, 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.md file.
# Compile an application, change a file, but don't change the outline.
type: newworld
worlds:
- entry: actualMain.dart
experiments: alternative-invalidation-strategy
sources:
actualMain.dart: |
// @dart=2.9
import 'main.dart' as m;
main() {
m.main();
}
main.dart: |
// @dart=2.9
import 'libA.dart';
main() {
whatever();
}
mainHello() {}
libA.dart: |
// @dart=2.9
import 'main.dart';
import 'libB.dart';
class Foo {}
whatever() {
Bar bar = new Bar(new Foo());
mainHello();
}
libB.dart: |
// @dart=2.9
import 'libA.dart';
class Bar {
Foo foo;
Bar(this.foo);
}
expectedLibraryCount: 4
- entry: actualMain.dart
experiments: alternative-invalidation-strategy
worldType: updated
expectInitializeFromDill: false
invalidate:
- main.dart
sources:
main.dart: |
// @dart=2.9
import 'libA.dart';
main() {
whatever();
mainHello();
}
mainHello() {}
expectedLibraryCount: 4
expectsRebuildBodiesOnly: true