cbbd76ef2c
Change-Id: I683f82fe1096963392f78f9dd3b640b66765b8b9 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/166604 Commit-Queue: Joshua Litt <joshualitt@google.com> Reviewed-by: Johnni Winther <johnniwinther@google.com> Reviewed-by: Sigmund Cherem <sigmund@google.com>
30 lines
700 B
Dart
30 lines
700 B
Dart
// Copyright (c) 2019, 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.
|
|
|
|
// @dart = 2.7
|
|
|
|
import 'shared.dart';
|
|
import 'lib2.dart' deferred as l2;
|
|
|
|
const c2 = const C(2);
|
|
|
|
const c3 = const C(3);
|
|
|
|
/*member: m1:
|
|
constants=[
|
|
ConstructedConstant(C(x=IntConstant(1)))=main{},
|
|
ConstructedConstant(C(x=IntConstant(2)))=1{l1},
|
|
ConstructedConstant(C(x=IntConstant(3)))=1{l1},
|
|
ConstructedConstant(C(x=IntConstant(4)))=2{l2}],
|
|
member_unit=1{l1}
|
|
*/
|
|
m1() async {
|
|
print(c2);
|
|
print(c3);
|
|
await l2.loadLibrary();
|
|
l2.m2();
|
|
print(l2.c3);
|
|
print(l2.c4);
|
|
}
|