7b8b06d717
https://github.com/dart-lang/sdk/issues/48587 Change-Id: I37cc8313886d626edafbe04acfef90b0fe666622 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/238043 Reviewed-by: Johnni Winther <johnniwinther@google.com> Commit-Queue: Jens Johansen <jensj@google.com>
28 lines
681 B
YAML
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()
|