blob: 421753dfa1eadea77a2e63f5804384ab00a83044 [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 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
* @compile-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();
}