Files
sdk/pkg/dynamic_modules/test/data/top_level/shared/shared.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

22 lines
561 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.
String topLevelField = 'original';
int topLevelGetterInternal = 0;
String get topLevelGetter {
topLevelGetterInternal++;
return 'original';
}
int topLevelSetterInternal = 0;
set topLevelSetter(String value) {
topLevelSetterInternal++;
}
int topLevelMethodInternal = 0;
void topLevelMethod(String value) {
topLevelMethodInternal++;
}