Files
kotlin/compiler/testData/diagnostics/tests/inference/immutableArrayList.kt
Svetlana Isakova f25f59bb6e Solve the constraint system for alpha-converted variables,
store initial and backward conversions for
substituting new constraints and the result
2015-07-10 15:05:08 +03:00

17 lines
241 B
Kotlin
Vendored

// FILE: p/J.java
package p;
public interface J {
public interface Super<T> {}
public interface Sub<T> extends Super<T> {}
}
// FILE: k.kt
import p.J.*
class Foo<T>: Sub<T> {
fun foo(): Super<T> {
return Foo()
}
}