Fix for KT-13557: VerifyError with delegated local variable used in object expression

#KT-13557 Fixed
This commit is contained in:
Mikhael Bogdanov
2016-11-09 13:40:20 +01:00
parent e68dcdcc1e
commit 21f2febf82
6 changed files with 44 additions and 5 deletions
@@ -0,0 +1,15 @@
//WITH_REFLECT
import java.util.*
import kotlin.properties.Delegates
fun box(): String {
var foo: String by Delegates.notNull();
object {
fun baz() {
foo = "OK"
}
}.baz()
return foo
}