blob: 08d249d60ccfb18e0766620f2ef80cc9500e481a [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 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 public declarations declared in a library are accessible when
* the library is imported.
* @author msyabro
* @reviewer iefremov
*/
import "lib.dart";
class C extends AccessibleClass {}
main() {
AccessibleClass c = new AccessibleClass();
AccessibleClass c2 = new C();
accessibleFuncType f = () {};
accessibleFunction();
accessibleVariable = 1;
}