| // 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. |
| |
| // Test instantiations with the same type argument count used only in two |
| // deferred libraries. |
| |
| /*class: global#Instantiation:OutputUnit(1, {b, c})*/ |
| /*class: global#Instantiation1:OutputUnit(1, {b, c})*/ |
| |
| import '../libs/instantiation2_strong_lib1.dart' deferred as b; |
| import '../libs/instantiation2_strong_lib2.dart' deferred as c; |
| |
| /*element: main:OutputUnit(main, {})*/ |
| main() async { |
| await b.loadLibrary(); |
| await c.loadLibrary(); |
| print(b.m(3)); |
| print(c.m(3)); |
| } |