Fixed KNPE when inline functions/constants are completely removed.

This commit is contained in:
Evgeny Gerashchenko
2014-11-11 19:58:22 +03:00
parent c9e5099307
commit 1a374efcd1
8 changed files with 61 additions and 1 deletions
@@ -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()
}