JVM_IR: handle nested function references in InlineCallableReferenceToLambda
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
inline fun String.takeRef(ref: () -> Unit) = this
|
||||
|
||||
fun f1() {}
|
||||
fun String.f2() {}
|
||||
|
||||
fun problematic(s: String) =
|
||||
s.takeRef(s.takeRef(::f1)::f2)
|
||||
|
||||
fun box() = problematic("OK")
|
||||
Reference in New Issue
Block a user