blob: 48225c0b2f80d14dfa37232fda121d24043a91ef [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.
# Mixin something from the same file.
type: newworld
forceLateLoweringForTesting: true
worlds:
- entry: main.dart
experiments: non-nullable,alternative-invalidation-strategy
sources:
lib1.dart: |
late int field;
method() {
print('foo');
}
lib2.dart: |
export 'lib1.dart';
main.dart: |
import 'lib2.dart';
main() {
field = 42;
}
expectedLibraryCount: 3
- entry: main.dart
experiments: alternative-invalidation-strategy
worldType: updated
expectInitializeFromDill: false
invalidate:
- main.dart
sources:
main.dart: |
import 'lib2.dart';
main() {
field = 87;
}
expectedLibraryCount: 3
expectsRebuildBodiesOnly: true
- entry: main.dart
experiments: alternative-invalidation-strategy
worldType: updated
expectInitializeFromDill: false
invalidate:
- lib1.dart
sources:
lib1.dart: |
late int field;
method() {
print('bar');
}
expectedLibraryCount: 3
expectsRebuildBodiesOnly: true