JVM_IR: generate shorter names for classes in delegate initializers

#KT-41493 Fixed
This commit is contained in:
pyos
2020-10-19 14:30:35 +02:00
committed by Alexander Udalov
parent b786cf7559
commit 5c55f67923
4 changed files with 26 additions and 10 deletions
@@ -0,0 +1,8 @@
operator fun (() -> String).getValue(thisRef: Any?, property: Any?) = this()
fun foo() {
val prop by { "OK" }
}
// METHOD : ObjectInLocalPropertyDelegateKt$foo$prop$2.invoke()Ljava/lang/String;
// VARIABLE : NAME=this TYPE=LObjectInLocalPropertyDelegateKt$foo$prop$2; INDEX=0