Fix exception on inlining callable reference with implicit this in LHS
Use ResolvedCall to determine the receiver type in the JVM codegen, instead of manually inspecting the PSI #KT-20821 Fixed
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
class X {
|
||||
fun x(): String {
|
||||
return foo("O", "K", ::y)
|
||||
}
|
||||
|
||||
fun y(a: String, b: String): String = a + b
|
||||
}
|
||||
|
||||
inline fun foo(a: String, b: String, f: (String, String) -> String): String {
|
||||
return f(a, b)
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
return X().x()
|
||||
}
|
||||
Reference in New Issue
Block a user