Inline function changed – rebuild all chunk.
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
package test
|
||||
|
||||
inline fun a(body: () -> Unit) {
|
||||
println("i'm inline function a")
|
||||
body()
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
b { println("to be inlined") }
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package test
|
||||
|
||||
inline fun a(body: () -> Unit) {
|
||||
body()
|
||||
println("i'm inline function a")
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
b { println("to be inlined") }
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package test
|
||||
|
||||
inline fun b(body: () -> Unit) {
|
||||
println("I'm inline function b")
|
||||
body()
|
||||
a { println("To be inlined from b") }
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
Cleaning output files:
|
||||
out/production/module/test/TestPackage-a-*.class
|
||||
out/production/module/test/TestPackage.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/a.kt
|
||||
End of files
|
||||
Cleaning output files:
|
||||
out/production/module/test/TestPackage-a-*.class
|
||||
out/production/module/test/TestPackage-b-*.class
|
||||
out/production/module/test/TestPackage.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/a.kt
|
||||
src/b.kt
|
||||
End of files
|
||||
Reference in New Issue
Block a user