Files
kotlin/compiler/testData/codegen/bytecodeListing/noDelegationsToPrivateInterfaceMembers.kt
Denis Zharkov 217f033552 Prevent generation of delegations to interfaces private methods
#KT-13381 Fixed
 #KT-13996 Fixed
2016-09-23 14:51:14 +03:00

11 lines
230 B
Kotlin
Vendored

interface A {
// There must be no delegation methods for 'log' and 'bar' in C as they are private
private val log: String get() = "O"
private fun bar() = "K"
fun foo() = log + bar()
}
interface B : A
class C : B