KT-11645 generate backing field for 'private const val' in part implementation class

This commit is contained in:
Dmitry Petrov
2016-04-13 15:57:13 +03:00
parent 76e5657a99
commit 511a7e0072
3 changed files with 33 additions and 3 deletions
@@ -0,0 +1,23 @@
// WITH_RUNTIME
// FILE: foo.kt
@file:JvmName("Util")
@file:JvmMultifileClass
package test
private const val x = "O"
fun foo() = x
// FILE: bar.kt
@file:JvmName("Util")
@file:JvmMultifileClass
package test
private const val x = "K"
fun bar() = x
// FILE: test.kt
package test
fun box(): String = foo() + bar()