Psi2Ir: Bind unbound type parameters

This commit is contained in:
Steven Schäfer
2020-04-15 13:51:30 +02:00
committed by Georgy Bronnikov
parent 8c4fdd1edd
commit fc7d667282
7 changed files with 45 additions and 0 deletions
@@ -0,0 +1,22 @@
// TARGET_BACKEND: JVM
// IGNORE_BACKEND_FIR: JVM_IR
// !LANGUAGE: -NewInference
// WITH_RUNTIME
// FILE: Base.java
import java.lang.Runnable;
import java.lang.IllegalStateException;
public class Base<T> {
public <S> S add(Base<S> value, Runnable block) { return null; }
}
// FILE: Derived.kt
class Derived<T>(val value: T) : Base<T>() {
init {
add(this) {}
}
}
fun box(): String {
return Derived("OK").value
}