Files
sdk/pkg/front_end/testcases/incremental/initializer_implicit_null.yaml
T
Johnni Winther 1662441541 [cfe] Enable alternative-invalidation-strategy by default
Change-Id: If9f08f883318a5f0487beaa0f7dbd73366ed5074
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/251107
Reviewed-by: Jens Johansen <jensj@google.com>
Reviewed-by: William Hesse <whesse@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2022-08-10 14:57:18 +00:00

31 lines
796 B
YAML

# Copyright (c) 2022, 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.
# Recompiling with no change shouldn't change the initializer - even from
# null to Constant(null).
type: newworld
worlds:
- entry: main.dart
sources:
main.dart: |
import "lib.dart";
class B {}
class C = A with B;
lib.dart: |
class A {
final int? a;
A([this.a]);
}
expectedLibraryCount: 2
- entry: main.dart
worldType: updated
compareToPrevious: true
expectInitializeFromDill: false
invalidate:
- main.dart
expectedLibraryCount: 2
advancedInvalidation: bodiesOnly