Files
kotlin-fork/compiler/testData/diagnostics/tests/regressions/OverrideResolution.kt
T
Andrey Breslav 3d8d92c7d3 JetDiagnosticsTest migrated to TestGenerator
- test data files renamed from *.jet to *.kt
2012-07-10 14:48:11 +04:00

17 lines
189 B
Kotlin
Vendored

fun box(c : C) {
val a : C = c
a.foo()
}
open class A {
open fun foo() {}
}
open class B : A() {
override fun foo() {}
}
open class C : B() {
override fun foo() {}
}