Files
kotlin/compiler/testData/compileJavaAgainstKotlin/method/primitiveOverride/ByteOverridesObject.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<Byte> {
override fun foo(): Byte = 42
}
abstract class C : A<Byte>