60 lines
1.2 KiB
Kotlin
Vendored
60 lines
1.2 KiB
Kotlin
Vendored
interface EmptyInterface
|
|
|
|
interface Interface1 {
|
|
fun itest() {}
|
|
fun itest1() {}
|
|
fun itest0(): String
|
|
fun itest00(): Interface1
|
|
fun itest000(): Int?
|
|
fun itest0000(): Int
|
|
fun itest00000(): Int
|
|
}
|
|
|
|
interface Interface2 {
|
|
fun itest() {}
|
|
fun itest2() {}
|
|
fun itest0(): CharSequence
|
|
fun itest00(): Interface2
|
|
fun itest000(): Nothing?
|
|
fun itest0000(): Nothing
|
|
fun itest00000(): String
|
|
}
|
|
|
|
interface Interface3 {
|
|
fun itest() {}
|
|
fun itest3() {}
|
|
}
|
|
|
|
interface InterfaceWithOutParameter<out T>
|
|
|
|
interface InterfaceWithTypeParameter1<T> {
|
|
fun ip1test1(): T? = null as T?
|
|
}
|
|
|
|
interface InterfaceWithTypeParameter2<T> {
|
|
fun ip1test2(): T? = null as T?
|
|
}
|
|
|
|
interface InterfaceWithTypeParameter3<T> {
|
|
fun ip1test3(): T? = null as T?
|
|
}
|
|
|
|
interface InterfaceWithFiveTypeParameters1<T1, T2, T3, T4, T5> {
|
|
fun itest() {}
|
|
fun itest1() {}
|
|
}
|
|
|
|
interface InterfaceWithFiveTypeParameters2<T1, T2, T3, T4, T5> {
|
|
fun itest() {}
|
|
fun itest2() {}
|
|
}
|
|
|
|
interface InterfaceWithFiveTypeParameters3<T1, T2, T3, T4, T5> {
|
|
fun itest() {}
|
|
fun itest3() {}
|
|
}
|
|
|
|
interface InterfaceWithTwoTypeParameters<T, K> {
|
|
fun ip2test(): T? = null as T?
|
|
}
|