Support synthetic accessors for @JvmDefault members

This commit is contained in:
Mikhael Bogdanov
2018-02-23 13:19:48 +01:00
parent 1acd5642ce
commit 308283e52e
13 changed files with 214 additions and 21 deletions
@@ -0,0 +1,23 @@
// !API_VERSION: 1.3
// JVM_TARGET: 1.8
// WITH_RUNTIME
interface Test {
@kotlin.annotations.JvmDefault
fun test(): String {
return privateFun() + privateProp
}
private fun privateFun(): String {
return "O"
}
private val privateProp: String
get() = "K"
}
class TestImpl: Test
fun box(): String {
return TestImpl().test()
}