Files
sdk/pkg/front_end/testcases/expression/issue_48587.expression.yaml
T
2022-03-22 12:07:48 +00:00

28 lines
681 B
YAML

# Copyright (c) 2018, 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.
# Check the expression compilation (including serialization) of usage of a
# deferred import works.
sources:
main.dart: |
import 'import.dart' deferred as d;
void main() {
print('hello');
}
Future<void> printDeferred() async {
d.deferredPrintLocal();
}
import.dart: |
void deferredPrintLocal() {
print('hello from deferred library');
}
definitions: []
position: "main.dart"
expression: |
d.deferredPrintLocal()