Do not recompile module when anonymous object or local class is changed.

This commit is contained in:
Evgeny Gerashchenko
2015-06-04 14:46:39 +03:00
parent 6403ef39eb
commit 0bf249d6ae
8 changed files with 48 additions and 13 deletions
@@ -1,6 +1,5 @@
package a
// Signatures in the class "...$main$1" have changed, thus we need to recompile the whole module
fun foo() = object {
fun baz() = ":)"
}
@@ -5,11 +5,4 @@ out/production/module/a/APackage.class
End of files
Compiling files:
src/a.kt
End of files
Cleaning output files:
out/production/module/usage/UsagePackage$usage$*.class
out/production/module/usage/UsagePackage.class
End of files
Compiling files:
src/usage.kt
End of files
@@ -0,0 +1,9 @@
package test
fun foo() {
class X {
fun bar() = 111
}
X().bar()
}
@@ -0,0 +1,11 @@
package test
fun foo() {
class X {
fun bar() = 111
fun baz() = ":)"
}
X().bar()
X().baz()
}
@@ -0,0 +1,8 @@
Cleaning output files:
out/production/module/test/TestPackage$a$*$foo$X.class
out/production/module/test/TestPackage$a$*.class
out/production/module/test/TestPackage.class
End of files
Compiling files:
src/a.kt
End of files
@@ -0,0 +1,5 @@
package unrelated
fun main(args: Array<String>) {
}