Fix for KT-13557: VerifyError with delegated local variable used in object expression
#KT-13557 Fixed
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user