blob: 2fbf04188a3ded4f23898d4179b08baf6c2391b4 [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 Dart supports two levels of privacy: public and private.
* A declaration is private iff its name is private, otherwise it is public.
* A name q is private iff any one of the identifiers that comprise q is
* private, otherwise it is public.
* An identifier is private iff it begins with an underscore (the _ character)
* otherwise it is public.
* A declaration m is accessible to library L if m is declared in L or if m is
* public.
* @description Checks that private declarations from the current script do not
* conflict with identically named declarations from an imported library.
* @author iefremov
*/
import "../lib.dart";
class _InaccessibleClass {}
typedef _inaccessibleFuncType(p1);
var _inaccessibleVariable;
_inaccessibleFunction() {}
class C extends _InaccessibleClass {}
main() {
new _InaccessibleClass();
_inaccessibleVariable = 1;
_inaccessibleFunction();
}