blob: acf60e76eb3da74a828876f132c0dd90487f38b0 [file] [log] [blame]
# Copyright (c) 2020, 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.
# Extension methods.
type: newworld
worlds:
- entry: main.dart
experiments: alternative-invalidation-strategy
sources:
main.dart: |
late final int x = 42;
extension Foo on int {
void x() { /*content =)*/ }
}
expectedLibraryCount: 1
- entry: main.dart
experiments: alternative-invalidation-strategy
worldType: updated
expectInitializeFromDill: false
invalidate:
- main.dart
expectedLibraryCount: 1
expectsRebuildBodiesOnly: true