KT-508 accessors for enclosed private fields

This commit is contained in:
Alex Tkachman
2011-11-14 19:34:00 +02:00
parent cf3217cdc1
commit 3b2fb0da8f
6 changed files with 59 additions and 8 deletions
@@ -0,0 +1,17 @@
namespace mult_constructors_3_bug
public open class Identifier() {
private var myNullable : Boolean = true
class object {
open public fun init(isNullable : Boolean) : Identifier {
val __ = Identifier()
__.myNullable = isNullable
return __
}
}
}
fun box() : String {
Identifier.init(true)
return "OK"
}