Files
sdk/pkg/dynamic_modules/test/data/indirect_expose/modules/entry1.dart
T
Sigmund Cherem d58b002b46 [dyn_modules] add more test cases.
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>
2024-11-21 21:53:03 +00:00

20 lines
649 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 '../shared/shared.dart';
import 'package:expect/expect.dart';
@pragma('dyn-module:entry-point')
Object? dynamicModuleEntrypoint() {
final e = Exported();
final i1 = Interface.v1();
final i2 = Interface.v2();
Expect.equals(3, e.method3());
Expect.equals(2, i1.method1());
Expect.equals(4, i2.method1());
// TODO(sigmund): expand test to use records, which currently fails in AOT.
return Triple(e, i1, i2);
}