blob: 6288ba8ac2ae3e8ed470cf9af129c01405e5ac75 [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.
// @dart = 2.9
/// @assertion An extension is in scope if the name is shadowed by another
/// declaration
///
/// @description Check that an extension's name is only accessible if it is not
/// shadowed and not conflicting with another imported declaration.
/// @author sgrekhov@unipro.ru
import "scope_all_lib.dart";
class Foo {}
main() {
Foo.staticFoo; //# 01: compile-time error
}