JVM IR: Avoid direct lambda invokes in inline tests

This commit is contained in:
Steven Schäfer
2022-06-13 15:13:04 +02:00
committed by Alexander Udalov
parent f0760e0550
commit 2acfb3a41f
117 changed files with 211 additions and 210 deletions
@@ -19,10 +19,10 @@ fun test1(param: String): String {
{
{
result = param + c + a
}()
}()
}.let { it() }
}.let { it() }
}
}()
}.let { it() }
}
return result
@@ -35,8 +35,8 @@ fun test2(param: String): String {
{
{
result = param + a
}()
}()
}.let { it() }
}.let { it() }
}
return result
@@ -51,10 +51,10 @@ fun test3(param: String): String {
{
{
result = param + c + a
}()
}()
}.let { it() }
}.let { it() }
}
}()
}.let { it() }
}
}
@@ -19,10 +19,10 @@ inline fun test1(crossinline param: () -> String): String {
{
{
result = param() + c + a
}()
}()
}.let { it() }
}.let { it() }
}
}()
}.let { it() }
}
return result
@@ -35,8 +35,8 @@ inline fun test2(crossinline param: () -> String): String {
{
{
result = param() + a
}()
}()
}.let { it() }
}.let { it() }
}
return result
@@ -51,10 +51,10 @@ inline fun test3(crossinline param: () -> String): String {
{
{
result = param() + c + a
}()
}()
}.let { it() }
}.let { it() }
}
}()
}.let { it() }
}
}