Fix binary compatibility for inlined local delegated properies

#KT-54650 Fixed
This commit is contained in:
Alexander Udalov
2022-11-01 00:07:58 +01:00
parent 5ef9a5a240
commit 3d00c173f3
7 changed files with 72 additions and 5 deletions
@@ -0,0 +1,10 @@
// This test checks that we use the `...$lambda-0` method name, instead of `...$lambda$0`, for extracted accessors of local delegated properties.
// It's important to keep these names until we fix the binary compatibility issue KT-49030.
operator fun String.getValue(thisRef: Any?, prop: Any?): String = this
operator fun String.setValue(thisRef: Any?, prop: Any?, value: String) {}
inline fun foo(): String {
var x by "OK"
return x
}