blob: e9f595efb5954f84d94e39e5d8f280fa08292b58 [file] [log] [blame]
// Copyright (c) 2019, 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 Static variables are variables whose declarations are
/// immediately contained within a class declaration and that are declared
/// static. The static variables of a class C are those static variables
/// declared by C.
/// @description Checks that superclass's static variables are unaccessible
/// via subclass's name. Test type alias
/// @author sgrekhov@unipro.ru
// SharedOptions=--enable-experiment=nonfunction-type-aliases
class S {
static var foo;
}
typedef SAlias = S;
class C extends SAlias {
}
main() {
C.foo;
// ^
// [analyzer] unspecified
// [cfe] unspecified
}