Java.lang.NoSuchFieldError when using private properties


class Test {
  private val property: Int
  get() = 1 + 1

  fun print() {

fun main(args: Array<String>) {
  val test = Test()

Compiles file [IntelliJ 12.0.2 - Kotlin plugin 0.4.297], but if you execute you get this

Exception in thread "main" java.lang.NoSuchFieldError: property   at Test.print(Test.kt:6)   at namespace.main(Test.kt:12)   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)   at sun.reflect.NativeMethodAccessorImpl.invoke(   at sun.reflect.DelegatingMethodAccessorImpl.invoke(   at java.lang.reflect.Method.invoke(   at com.intellij.rt.execution.application.AppMain.main(

However, it works just fine if the property is public, protected or module-internal.

I replicate this on   0.4.453 as well.

Reported to issue tracker: KT-3281