Prevent generation of delegations to interfaces private methods

#KT-13381 Fixed
 #KT-13996 Fixed
This commit is contained in:
Denis Zharkov
2016-09-22 18:21:03 +03:00
parent 06c804787f
commit 217f033552
6 changed files with 67 additions and 1 deletions
@@ -0,0 +1,10 @@
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