[JS IC TEST] Add test case for private top-level inline functions

This commit is contained in:
Roman Artemev
2021-12-17 05:25:01 +03:00
committed by teamcity
parent 2d0fea4dcb
commit 2474702bef
9 changed files with 54 additions and 0 deletions
@@ -0,0 +1,8 @@
private inline fun privateBar(z: Int, l: (Int) -> Int) = l(z - 3)
private inline fun privateFoo(x: Int, l: (Int) -> Int): Int {
return privateBar(x * 2, l)
}
fun foo(x: Int, y: Int) = y - privateFoo(x) { it + it }
@@ -0,0 +1,8 @@
private inline fun privateBar(z: Int, l: (Int) -> Int) = l(z - 5)
private inline fun privateFoo(x: Int, l: (Int) -> Int): Int {
return privateBar(x * 2, l)
}
fun foo(x: Int, y: Int) = y - privateFoo(x) { it + it }
@@ -0,0 +1,8 @@
STEP 0:
dependencies: stdlib
dirty: l1.kt
STEP 1:
dependencies: stdlib
modifications:
U : l1.kt.1 -> l1.kt
dirty: l1.kt