JVM IR: Avoid direct lambda invokes in inline tests
This commit is contained in:
committed by
Alexander Udalov
parent
f0760e0550
commit
2acfb3a41f
@@ -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() }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+8
-8
@@ -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() }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user