Fix for KT-10729: Accessing private const field in companion object from a function in the same companion generates run-time error

This commit is contained in:
Michael Bogdanov
2016-02-01 14:04:24 +03:00
parent 9790afb1bd
commit 5f38c1d571
10 changed files with 94 additions and 4 deletions
@@ -0,0 +1,10 @@
class My {
companion object {
private val my: String = "O"
get() = field + "K"
fun getValue() = my
}
}
fun box() = My.getValue()