blob: f94ccd042f7ec8186f90bfef665271ee00f08406 [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.
# Unnamed extension.
type: newworld
worlds:
- entry: main.dart
experiments: alternative-invalidation-strategy
sources:
main.dart: |
// @dart=2.9
class A1 {}
extension on A1 {
A1 method1() {
return this;
}
String get getter1 => "42!";
void set setter1(String s) {}
static A1 method2() {
return null;
}
static String get getter2 => "42!";
static void set setter2(String s) {}
}
expectedLibraryCount: 1
- entry: main.dart
experiments: alternative-invalidation-strategy
worldType: updated
expectInitializeFromDill: false
invalidate:
- main.dart
sources:
main.dart: |
// @dart=2.9
class A1 {}
extension on A1 {
A1 method1() {
return this;
}
String get getter1 => "42!";
void set setter1(String s) {}
static A1 method2() {
return null;
}
static String get getter2 => "42!";
static void set setter2(String s) {}
}
expectedLibraryCount: 1
expectsRebuildBodiesOnly: true