blob: e6a40f552ce6c76505a9e55750eae19781d9c3e0 [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 The dart core library dart:core is implicitly imported into
/// every dart library other than itself via an import clause of the form
/// import `dart:core';
/// unless the importing library explicitly imports dart:core.
/// Any import of dart:core, even if restricted via show, hide or as, preempts
/// the automatic import.
/// @description Checks that explicit import of dart:core preempt automatic
/// import.
/// @author ilya
import 'dart:core' hide List;
main() {
List; // List is hidden
//^
// [analyzer] unspecified
// [cfe] unspecified
}