blob: 749a5b1d84fe62564d1929bb26cc08424fc2f052 [file] [log] [blame]
// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
//^
// [cfe] unspecified
// 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 It is a static warning if the specified URI of a deferred import
/// does not refer to a library declaration.
/// @description Checks that it is a compile error if the URI in a
/// deferred import directive refers to a part declaration which is not a
/// library declaration.
/// @author ngl@unipro.ru
library my_lib;
import "invalid_uri_t01_part.dart" deferred as p;
// ^
// [analyzer] unspecified
// [cfe] unspecified
main() {
p.foo = 'abc';
}