<commit_before>class Widget<X>() {}

interface Bucket<out X> {}

interface Wrong<out X> {}

@error abstract class WidgetBucket<in X>() 
        satisfies Bucket<Widget<X>> & Wrong<X> {
    @error shared Wrong<X> wrong;
    @error shared Bucket<Widget<X>> bucket;
}
<commit_msg>more tests for variance<commit_after>class Widget<X>() {}

interface Bucket<out X> {}

interface Pile<out X> {}

@error abstract class WidgetBucket<in X>() 
        satisfies Bucket<Widget<X>> & Pile<X> {
    @error shared Pile<X> wrong;
    @error shared Bucket<Widget<X>> bucket;
}

class Better<out T>() satisfies Pile<Bucket<T>> {
	function ok() {
		Pile<Bucket<T>> w = this;
		return w;
	}
}
@error class Worse<out T>() extends Widget<Bucket<T>>() {
	@error function notok() {
		@error Widget<Bucket<T>> w = this;
		return w;
	}
}
{'fraction_non_alphanumeric': 0.15886699507389163, 'fraction_numerical': 0.0, 'mean_word_length': 4.313725490196078, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 33, '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': '4806984', 'n_tokens_mistral': 291, 'n_tokens_neox': 291, 'n_words': 78}