mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 00:21:28 +00:00
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()
|
|
}
|
|
} |