Tests with constants, incremental compilation between Kotlin and Java.

This commit is contained in:
Evgeny Gerashchenko
2014-10-22 12:36:29 +04:00
parent 70331e3b82
commit 9234ef3803
17 changed files with 131 additions and 0 deletions
@@ -0,0 +1,7 @@
import test.*;
class Usage {
public static void main(String[] args) {
System.out.println(Klass.CONST + Klass.CONST);
}
}
@@ -0,0 +1,18 @@
Cleaning output files:
out/production/module/test/Klass$object.class
out/production/module/test/Klass.class
End of files
Compiling files:
src/const.kt
End of files
Cleaning output files:
out/production/module/Usage.class
out/production/module/test/Klass$object.class
out/production/module/test/Klass.class
End of files
Compiling files:
src/const.kt
End of files
Compiling files:
src/Usage.java
End of files
@@ -0,0 +1,8 @@
package test
class Klass {
class object {
// Old and new constant values are different, but their hashes are the same
val CONST = "BF"
}
}
@@ -0,0 +1,8 @@
package test
class Klass {
class object {
// Old and new constant values are different, but their hashes are the same
val CONST = "Ae"
}
}
@@ -0,0 +1,7 @@
import test.*;
class Usage {
public static void main(String[] args) {
System.out.println(Klass.CONST + Klass.CONST);
}
}
@@ -0,0 +1,7 @@
Cleaning output files:
out/production/module/test/Klass$object.class
out/production/module/test/Klass.class
End of files
Compiling files:
src/const.kt
End of files
@@ -0,0 +1,7 @@
package test
class Klass {
class object {
val CONST = "bar"
}
}
@@ -0,0 +1,7 @@
package test
class Klass {
class object {
val CONST = "bar"
}
}