blob: 619ae655605b19da4c5041f7678574334fb7d187 [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.
// @dart = 2.9
/// @assertion It is a static warning if the referenced part declaration p names
/// a library other than the current library as the library to which p belongs.
/// @description Checks that it is a compile error if the referenced part names
/// another library.
/// @author rodionov
/// @reviewer kaigorodov
library Parts_test_lib_not;
import "../../../Utils/expect.dart";
part "part_3.dart";
// ^
// [analyzer] unspecified
// [cfe] unspecified
main() {
new A();
// ^
// [cfe] unspecified
value = 3;
//^
// [cfe] unspecified
Expect.equals(3, value);
// ^
// [cfe] unspecified
}