Files
sdk/pkg/front_end/testcases/incremental/initializer_implicit_null.yaml
T
Kallen Tu 627253ed83 [flip-modifiers] Make more tests use mixin instead of class.
Change-Id: I27ee447599941e7f266ae56bd6663fe1936394fc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/287223
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Kallen Tu <kallentu@google.com>
2023-03-07 23:59:39 +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";
mixin 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