9394b30b77
Bug: b/286184681 Change-Id: I903528c4adfbc576644aec7541903df6b9633e26 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/325523 Reviewed-by: Jonas Termansen <sortie@google.com> Reviewed-by: Samuel Rawlins <srawlins@google.com> Commit-Queue: Alexander Thomas <athom@google.com>
77 lines
1.9 KiB
YAML
77 lines
1.9 KiB
YAML
# Copyright (c) 2021, 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 file.
|
|
|
|
# Compile an application, change a file, but don't change the outline.
|
|
# Try to mess up the hierarchy.
|
|
|
|
type: newworld
|
|
target: dartdevc
|
|
worlds:
|
|
- entry: main.dart
|
|
sources:
|
|
main.dart: |
|
|
import "lib1.dart";
|
|
import "lib2.dart";
|
|
import "lib3.dart";
|
|
|
|
main() {
|
|
Foo foo = new Bar();
|
|
lib3Method(foo);
|
|
}
|
|
lib1.dart: |
|
|
class Foo {
|
|
void fooMethod() {
|
|
// Not filled out.
|
|
}
|
|
}
|
|
lib2.dart: |
|
|
import "lib1.dart";
|
|
class Bar extends Foo {
|
|
void barMethod() {
|
|
// Not filled out.
|
|
}
|
|
}
|
|
lib3.dart: |
|
|
import "lib1.dart";
|
|
import "lib2.dart";
|
|
void lib3Method(Foo foo) {
|
|
var f = Bar.new;
|
|
Foo bar = f();
|
|
bool equal = foo == bar;
|
|
print("foo == bar = $equal");
|
|
}
|
|
expectedLibraryCount: 4
|
|
- entry: main.dart
|
|
worldType: updated
|
|
expectInitializeFromDill: false
|
|
invalidate:
|
|
- lib1.dart
|
|
sources:
|
|
lib1.dart: |
|
|
class Foo {
|
|
void fooMethod() {
|
|
print("fooMethod");
|
|
}
|
|
}
|
|
expectedLibraryCount: 4
|
|
advancedInvalidation: bodiesOnly
|
|
- entry: main.dart
|
|
worldType: updated
|
|
expectInitializeFromDill: false
|
|
invalidate:
|
|
- lib3.dart
|
|
sources:
|
|
lib3.dart: |
|
|
import "lib1.dart";
|
|
import "lib2.dart";
|
|
void lib3Method(Foo foo) {
|
|
var f = Bar.new;
|
|
Foo bar = f();
|
|
bool equal = foo == bar;
|
|
print("foo == bar = $equal");
|
|
print("Done!");
|
|
}
|
|
expectedLibraryCount: 4
|
|
advancedInvalidation: bodiesOnly
|