JVM_IR KT-39612 process subexpressions recursively in 'name' lowering

This commit is contained in:
Dmitry Petrov
2020-11-30 12:22:15 +03:00
parent 3b604cfa7f
commit b2aed536c9
5 changed files with 35 additions and 4 deletions
@@ -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"