@User uploaded a file:
Untitled and commented: The code under “Kotlin 1” results in: Accidental override: The following declarations have the same JVM signature (getFoo()LFoo;):
fun <get-foo>(): Foo
fun getFoo(): Foo!
The code under “Kotlin 2” does not because the private property has a different type. Is that intended? Also, why is a getter generated for the private property in the first example?