Files
kotlin-fork/compiler/testData/codegen/box/classes/kt3862.kt
T
2015-05-12 19:43:17 +02:00

19 lines
282 B
Kotlin
Vendored

open class A<T> {
open fun foo(a: T): Int = 2
}
interface B<T> : A<T> {
override fun foo(a: T): Int = 1
}
class D : B<Int>, A<Int>() {
fun boo(): Int {
return super<B>.foo(1)
}
}
fun box(): String {
if (D().boo() != 1) return "Fail"
return "OK"
}