blob: 5cbb86247c6765f8c940a7e117906919b54a4f50 [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.
# Have both a setter and a getter with the same name.
type: newworld
worlds:
- entry: main.dart
experiments: alternative-invalidation-strategy
sources:
main.dart: |
class Foo {
String get x { return "x #1"; }
void set x(String x) {}
}
main() {
Foo foo = new Foo();
print(foo.x);
foo.x = "hello";
}
expectedLibraryCount: 1
- entry: main.dart
experiments: alternative-invalidation-strategy
worldType: updated
expectInitializeFromDill: false
invalidate:
- main.dart
sources:
main.dart: |
class Foo {
String get x { return "x #2"; }
void set x(String x) {}
}
main() {
Foo foo = new Foo();
print(foo.x);
foo.x = "hello";
}
expectedLibraryCount: 1
expectsRebuildBodiesOnly: true