1b553ebfaf
Added tests from testData/codegen/box directory. There are blackbox tests in other directories and they are to be added.
14 lines
191 B
Kotlin
14 lines
191 B
Kotlin
open class A {
|
|
open fun foo() = "FAIL"
|
|
|
|
fun bar() = if (this is C) foo() else foo()
|
|
}
|
|
|
|
open class B : A()
|
|
|
|
open class C : B() {
|
|
override fun foo() = "OK"
|
|
}
|
|
|
|
fun box() = C().bar()
|