[JS IC TEST] Add test case for private top-level inline functions
This commit is contained in:
+8
@@ -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 }
|
||||
+8
@@ -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 }
|
||||
+8
@@ -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
|
||||
Reference in New Issue
Block a user