Regression codegen test #KT-8344 Obsolete

This commit is contained in:
Mikhail Glukhikh
2016-02-02 12:21:41 +03:00
parent 816c66063b
commit 7e528da00a
3 changed files with 31 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
// A.kt
package first
open class A {
protected open fun test(): String = "FAIL (A)"
}
fun box() = second.C().value()

View File

@@ -0,0 +1,17 @@
// B.kt
// See also KT-8344: INVOKESPECIAL instead of INVOKEVIRTUAL in accessor
package second
import first.A
public abstract class B(): A() {
val value = {
test()
}
}
class C: B() {
override fun test() = "OK"
}