blob: fb7b2f9fa714dbd3aa6efc63cf4d3a11b3974653 [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.
# Force the creating of forwarding stubs.
type: newworld
worlds:
- entry: main.dart
experiments: alternative-invalidation-strategy
sources:
main.dart: |
// @dart=2.9
import "lib1.dart";
abstract class C extends B implements A<int> {}
main() {
print("#1");
}
lib1.dart: |
// @dart=2.9
class A<T> {
foo(T t) {
print("foo T $t");
}
}
class B {
foo(int t) {
print("foo int $t");
}
}
expectedLibraryCount: 2
- entry: main.dart
experiments: alternative-invalidation-strategy
worldType: updated
expectInitializeFromDill: false
invalidate:
- main.dart
sources:
main.dart: |
// @dart=2.9
import "lib1.dart";
abstract class C extends B implements A<int> {}
main() {
print("#2");
}
expectedLibraryCount: 2
expectsRebuildBodiesOnly: true