blob: a9f5a9d16cd87ef8be2c5b8751bf2f0bbbd4f446 [file] [log] [blame]
// 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.
/*library: scope=[
async.dart.FutureExtensions,
core.dart.EnumByName,
core.dart.EnumName,
lib1.dart.ShownExtension1,
lib2.dart.ShownExtension2,
lib3.dart.ShownExtension3]*/
import 'lib1.dart' as lib1 show ShownExtension1;
import 'lib2.dart' as lib2 hide HiddenExtension2;
import 'lib3.dart' as lib3;
main() {
lib1.ShownExtension1.staticMethod();
lib1. /*error: errors=[Undefined name 'HiddenExtension1'.]*/
HiddenExtension1.staticMethod();
lib2.ShownExtension2.staticMethod();
lib2. /*error: errors=[Undefined name 'HiddenExtension2'.]*/
HiddenExtension2.staticMethod();
lib3.ShownExtension3.staticMethod();
}