<commit_before>void stuff() {
    value iter = {"hello", "world"};
    [Integer+] ints1 = iter*.size;
    [String+] strs1 = iter*.clone();
    [String+]() strs1Fun = iter*.clone;
    [Character?+] ok1 = iter*.reduce<Character>((x, y)=>(x.integer+y.integer).character);
    $error value broken1 = iter*.fold("");
    
    value seq = ["hello", "world"];
    [Integer+] ints2 = seq*.size;
    [String+] strs2 = seq*.clone();
    [String+]() strs2Fun = seq*.clone;
    [Character?+] ok2 = seq*.reduce<Character>((x, y)=>(x.integer+y.integer).character);
    $error value broken2 = seq*.fold("");
}


void spreadConstructor() {
    class C() {
        shared class D {
            shared new () {}
            shared new create() {}
        }
    }
    {C()}*.D();
    $error {C()}*.D.create();
}<commit_msg>test for #7345<commit_after>void stuff() {
    value iter = {"hello", "world"};
    [Integer+] ints1 = iter*.size;
    [String+] strs1 = iter*.clone();
    [String+]() strs1Fun = iter*.clone;
    [Character?+] ok1 = iter*.reduce<Character>((x, y)=>(x.integer+y.integer).character);
    $error value broken1 = iter*.fold("");
    
    value seq = ["hello", "world"];
    [Integer+] ints2 = seq*.size;
    [String+] strs2 = seq*.clone();
    [String+]() strs2Fun = seq*.clone;
    [Character?+] ok2 = seq*.reduce<Character>((x, y)=>(x.integer+y.integer).character);
    $error value broken2 = seq*.fold("");
}


void spreadConstructor() {
    class C() {
        shared class D {
            shared new () {}
            shared new create() {}
        }
    }
    {C()}*.D();
    $error {C()}*.D.create();
}

void spreadEmptyToNonempty() {
	void fun<Element>(Element+ elements) {}
	$error fun(*[]);
	fun("", *[]);
	fun(*[""]);
	fun("", *[""]);
}
{'fraction_non_alphanumeric': 0.22953634802518602, 'fraction_numerical': 0.013737836290784202, 'mean_word_length': 2.9192825112107625, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 12, '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': '4031336', 'n_tokens_mistral': 615, 'n_tokens_neox': 614, 'n_words': 130}