Yes, it has private access, because it's a backing field of a property.
In your case, you should probably write
Copy code
const val NAME = "..."
e
Eugen Martynov
07/17/2017, 6:15 AM
Oke guys, but why it is fine when I convert consuming class to kotlin?
Eugen Martynov
07/17/2017, 6:15 AM
probably const is better approach
d
dmitry.petrov
07/17/2017, 6:24 AM
Well, it depends. For example, when you use J2K to convert some Java class/interface to Kotlin, it also updates corresponding usages in Java code when required.