blob: 87cdad6c4058005d8baada0b9e0c61b78b444b13 [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 An extension is in scope if the name is shadowed by another
/// declaration
///
/// @description Check that it is a compile error if extensions have name
/// conflict
/// @author sgrekhov@unipro.ru
import "scope_all_lib.dart";
import "scope_bar_lib.dart";
main() {
List<String> list = ["Lily", "was", "here"];
Bar(list).bar();
//^^^
// [analyzer] unspecified
// [cfe] unspecified
Bar.staticBar;
//^^^
// [analyzer] unspecified
// [cfe] unspecified
}