Files
kotlin/compiler/testData/compileJavaAgainstKotlin/method/primitiveOverride/NullableIntOverridesObject.kt
Alexander Udalov 713c6f13ae Fix primitive override problem in Kotlin-Java inheritance
See the comment in JetTypeMapper
2013-12-30 06:41:09 +04:00

10 lines
122 B
Kotlin

trait A<T> {
fun foo(): T
}
open class B : A<Int?> {
override fun foo(): Int? = 42
}
abstract class C : A<Int?>