d58b002b46
This includes: * tests extending non-base class * tests for applying mixins * generalization of top-level test to include methods and gettters * tests for annotating entities indirectly (reexport, hidden implementation) * test for using core libraries and core language features. Change-Id: I2ff928c15794547368d2871f5b982685593ef662 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/396105 Reviewed-by: Alexander Markov <alexmarkov@google.com> Commit-Queue: Sigmund Cherem <sigmund@google.com>
27 lines
622 B
Dart
27 lines
622 B
Dart
// Copyright (c) 2024, 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 file.
|
|
|
|
import 'private.dart';
|
|
|
|
export 'private.dart' show Exported;
|
|
|
|
class Triple {
|
|
final Exported e;
|
|
final Interface i1;
|
|
final Interface i2;
|
|
Triple(this.e, this.i1, this.i2);
|
|
}
|
|
|
|
abstract class Interface {
|
|
factory Interface.v1() => _Implemenetation();
|
|
factory Interface.v2() => Implementation2();
|
|
|
|
int method1();
|
|
}
|
|
|
|
class _Implemenetation implements Interface {
|
|
@override
|
|
int method1() => 2;
|
|
}
|