[FIR] Fix infinite loop in attribute substitution

#KT-65318 Fixed
This commit is contained in:
Kirill Rakhman
2024-01-26 17:29:28 +01:00
committed by Space Team
parent d047db850f
commit 9e72482f09
8 changed files with 61 additions and 1 deletions
@@ -0,0 +1,14 @@
// FIR_IDENTICAL
// FILE: Super.java
import org.jspecify.annotations.NullMarked;
@NullMarked
public abstract class Super<E extends Super<E>> implements Comparable<E> {
public final int compareTo(E o) {
throw new RuntimeException();
}
}
// FILE: test.kt
open class E : Super<E>()