| // Copyright (c) 2016, 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 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. |
| * @compile-error |
| * @author ngl@unipro.ru |
| */ |
| |
| library my_lib; |
| import "invalid_uri_t01_part.dart" deferred as p; |
| |
| main() { |
| p.foo = 'abc'; |
| } |