blob: 8989c42d8fb69441d4f21d22aadb625f70a8ee77 [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.
* @static-warning
* @author ilya
*/
import "../../Utils/expect.dart";
import 'dart:core' show List;
main() {
List;
Expect.throws(() => String);
}