mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
12 lines
140 B
Kotlin
12 lines
140 B
Kotlin
package test
|
|
|
|
interface A<T> {
|
|
fun foo(): T
|
|
}
|
|
|
|
open class B : A<Int?> {
|
|
override fun foo(): Int? = 42
|
|
}
|
|
|
|
abstract class C : A<Int?>
|