<commit_before>/*
 * 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 declaration is a top-level declaration with a grammar
 * similar to:
 * <extension> ::=
 *   `extension' <identifier>? <typeParameters>? `on' <type> `?'? `{'
 *     memberDeclaration*
 *   `}'
 * ...
 * The member declarations can be any non-abstract static or instance member
 * declaration except for instance variables and constructors.
 *
 * @description Check that it is a compile error if extension declares an
 * instance variable, constructor or abstract method
 * @author <EMAIL>
 */
// SharedOptions=--enable-experiment=extension-methods

extension ExtendedList<T> on List<T> {
  int instanceVar;                  //# 01: compile-time error
  String _privateInstanceVar;       //# 02: compile-time error
  ExtendedList<T>() {}              //# 03: compile-time error
  ExtendedList<T>.named(int i) {}   //# 04: compile-time error
  void abstractMethod(String v);    //# 05: compile-time error
}

main() {
  List<String> list = ["Lily", "was", "here"];
}
<commit_msg>Fixes #408. Remove wrong type argument<commit_after>/*
 * 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 declaration is a top-level declaration with a grammar
 * similar to:
 * <extension> ::=
 *   `extension' <identifier>? <typeParameters>? `on' <type> `?'? `{'
 *     memberDeclaration*
 *   `}'
 * ...
 * The member declarations can be any non-abstract static or instance member
 * declaration except for instance variables and constructors.
 *
 * @description Check that it is a compile error if extension declares an
 * instance variable, constructor or abstract method
 * @author <EMAIL>
 */
// SharedOptions=--enable-experiment=extension-methods

extension ExtendedList<T> on List<T> {
  int instanceVar;                  //# 01: compile-time error
  String _privateInstanceVar;       //# 02: compile-time error
  ExtendedList() {}                 //# 03: compile-time error
  ExtendedList.named(int i) {}      //# 04: compile-time error
  void abstractMethod(String v);    //# 05: compile-time error
}

main() {
  List<String> list = ["Lily", "was", "here"];
}

{'fraction_non_alphanumeric': 0.12007952286282306, 'fraction_numerical': 0.012326043737574552, 'mean_word_length': 3.2862010221465074, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3317000', 'n_tokens_mistral': 733, 'n_tokens_neox': 688, 'n_words': 267}