Fixed KNPE when inline functions/constants are completely removed.
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
Cleaning output files:
|
||||
out/production/module/test/TestPackage$const$*.class
|
||||
out/production/module/test/TestPackage.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/const.kt
|
||||
End of files
|
||||
@@ -0,0 +1,3 @@
|
||||
package test
|
||||
|
||||
val CONST = "foo"
|
||||
@@ -0,0 +1,3 @@
|
||||
package test
|
||||
|
||||
val CONST = "I'm not a constant anymore:" + System.currentTimeMillis()
|
||||
@@ -0,0 +1,14 @@
|
||||
Cleaning output files:
|
||||
out/production/module/inline/InlinePackage$inline$*.class
|
||||
out/production/module/inline/InlinePackage.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/inline.kt
|
||||
End of files
|
||||
Cleaning output files:
|
||||
out/production/module/inline/InlinePackage$inline$*.class
|
||||
out/production/module/inline/InlinePackage.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/inline.kt
|
||||
End of files
|
||||
@@ -0,0 +1,6 @@
|
||||
package inline
|
||||
|
||||
inline fun f(body: () -> Unit) {
|
||||
println("i'm inline function")
|
||||
body()
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package inline
|
||||
|
||||
fun f(body: () -> Unit) {
|
||||
println("i'm not an inline function")
|
||||
body()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user