blob: 5e0e8894b1fb8aa0d801780dd482f913f520f3ec [file] [log] [blame]
/*
* Copyright (c) 2011, 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.
*/
/**
* @assertion If a name N is referenced by a library L and N would be
* introduced into the exported namespace of L by exports of two libraries, L1
* and L2, and the exported namespace of L1 binds N to a declaration
* originating in a system library:
* • The export of L1 is implicitly extended by a hide N clause.
* • A static warning is issued.
* @description Checks that implicit hiding of SDK library classes is
* prohibited.
* @static-warning
* @author ilya
*/
import "../../../Utils/expect.dart";
import 'implicit_hide_t01_lib1.dart';
main() {
Expect.equals('MYLIST', List.typename); /// static-type warning
Expect.equals('MYLIST2', List2.typename);
}