Additional codegen test for KT-10107

This commit is contained in:
Mikhail Glukhikh
2015-12-14 12:52:43 +03:00
parent fdc9e9d7f5
commit 19084b8182
2 changed files with 19 additions and 0 deletions
@@ -0,0 +1,13 @@
// See KT-10107: 'Variable must be initialized' for delegate with private set
class My {
var delegate: String by kotlin.properties.Delegates.notNull()
private set
init {
delegate = "OK"
}
}
fun box() = My().delegate