blob: 6d402adfa2ba2e047d1c7018ecf71ec57fadc232 [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 If there is no such member, the operation is currently a
/// compile-time error. In that case, all extensions in scope are checked for
/// whether they apply.
///
/// @description Check that if there is no such member, the operation is
/// currently a compile-time error
/// @author sgrekhov@unipro.ru
import "my_fancy_list_lib.dart";
extension<T> on List<T> {
String method(int i, String s) {}
}
main() {
List<String> list = ["Lily", "was", "here"];
list.notExiestinMethod();
// ^
// [analyzer] unspecified
// [cfe] unspecified
}