blob: 493e4b71a5beefdb5184d442061e0b4a7543a6c3 [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 file.
# Compile an application with a part, change a file,
# but don't change the outline.
type: newworld
worlds:
- entry: main.dart
sources:
main.dart: |
part 'myPart.dart';
class Foo {
const Foo();
@override
toString() => 'Foo!';
}
main() async {
await whatever();
print(const Foo());
}
myPart.dart: |
part of 'main.dart';
whatever() async {
await null;
return "hello";
}
expectedLibraryCount: 1
- entry: main.dart
worldType: updated
expectInitializeFromDill: false
invalidate:
- myPart.dart
sources:
myPart.dart: |
part of 'main.dart';
whatever() async {
await null;
return "hello!!!";
}
expectedLibraryCount: 1
advancedInvalidation: bodiesOnly
- entry: main.dart
worldType: updated
expectInitializeFromDill: false
invalidate:
- main.dart
sources:
main.dart: |
part 'myPart.dart';
class Foo {
const Foo();
@override
toString() => 'Foo!';
}
main() async {
await whatever();
print(const Foo());
print("Done!");
}
expectedLibraryCount: 1
advancedInvalidation: bodiesOnly