f25f59bb6e
store initial and backward conversions for substituting new constraints and the result
17 lines
241 B
Kotlin
Vendored
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()
|
|
}
|
|
} |