JVM_IR KT-39612 process subexpressions recursively in 'name' lowering
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
fun foo() {}
|
||||
|
||||
fun id(s: String) = s
|
||||
|
||||
fun test1() = id(::foo.name)
|
||||
|
||||
fun test2(name: String) = (if (name == ::foo.name) ::foo else ::id).annotations
|
||||
|
||||
// 0 getName
|
||||
// 3 LDC "foo"
|
||||
Reference in New Issue
Block a user