Files
sdk/pkg/front_end/testcases/incremental/flutter_mixin_failure_1.yaml
T
Johnni Winther 357e83e44d [cfe] Rename incremental_load/initialize_from_dill(_suite) to incremental(_suite)
Change-Id: I747151249330ed3c9c1026289be52d5ca0dca891
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/185600
Reviewed-by: Jens Johansen <jensj@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2021-02-19 08:41:07 +00:00

63 lines
1.3 KiB
YAML

# 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.
# Regression test from flutter.
type: newworld
worlds:
- entry: main.dart
sources:
main.dart: |
import 'lib.dart';
class Test extends Test2 {
Quux world() => null;
}
abstract class Test2 {
Baz world();
}
lib.dart: |
class FooEntry {}
class BarEntry extends FooEntry {}
abstract class FooTarget {
void hello(FooEntry entry);
}
abstract class Baz implements FooTarget {
void hello(covariant FooEntry entry) {}
}
mixin MyMixin on Baz {}
abstract class Qux extends Baz {
void hello(BarEntry entry) {}
}
class Quux extends Qux with MyMixin {}
expectedLibraryCount: 2
- entry: main.dart
worldType: updated
invalidate:
- main.dart
expectInitializeFromDill: false
sources:
main.dart: |
import 'lib.dart';
class Test extends Test2 {
Quux world() => null;
}
abstract class Test2 {
Baz world();
}
main() {
print(new Test());
}
expectedLibraryCount: 2