Added hacky checks for accessing compiled functions from our module via package part instead of facade.

#KT-4590 fixed

Original commit: 6501066274
This commit is contained in:
Evgeny Gerashchenko
2014-06-30 21:50:34 +04:00
parent 0d7b31df2b
commit b86d7668b0
15 changed files with 79 additions and 0 deletions
@@ -32,6 +32,16 @@ import org.jetbrains.jet.jps.build.AbstractIncrementalJpsTest;
@SuppressWarnings("all")
@TestMetadata("jps-plugin/testData/incremental")
public class IncrementalJpsTestGenerated extends AbstractIncrementalJpsTest {
@TestMetadata("accessingFunctionsViaPackagePart")
public void testAccessingFunctionsViaPackagePart() throws Exception {
doTest("jps-plugin/testData/incremental/accessingFunctionsViaPackagePart/");
}
@TestMetadata("accessingPropertiesViaField")
public void testAccessingPropertiesViaField() throws Exception {
doTest("jps-plugin/testData/incremental/accessingPropertiesViaField/");
}
@TestMetadata("allConstants")
public void testAllConstants() throws Exception {
doTest("jps-plugin/testData/incremental/allConstants/");
@@ -0,0 +1,3 @@
package test
fun a() = "a"
@@ -0,0 +1,3 @@
package test
fun b() = "b"
@@ -0,0 +1,3 @@
package test
fun b() = "b"
@@ -0,0 +1,9 @@
Cleaning output files:
out/production/module/test/TestPackage-b-*.class
out/production/module/test/TestPackage-usage-*.class
out/production/module/test/TestPackage.class
End of files
Compiling files:
src/b.kt
src/usage.kt
End of files
@@ -0,0 +1,3 @@
package other
fun other() = "other"
@@ -0,0 +1,5 @@
package test
fun main(args: Array<String>) {
println(a() + b() + other.other())
}
@@ -0,0 +1,5 @@
package test
fun main(args: Array<String>) {
println(a() + b() + other.other())
}
@@ -0,0 +1,3 @@
package test
var a = "a"
@@ -0,0 +1,4 @@
// TODO add var
package test
var b = "b"
@@ -0,0 +1,3 @@
package test
var b = "b"
@@ -0,0 +1,9 @@
Cleaning output files:
out/production/module/test/TestPackage-b-*.class
out/production/module/test/TestPackage-usage-*.class
out/production/module/test/TestPackage.class
End of files
Compiling files:
src/b.kt
src/usage.kt
End of files
@@ -0,0 +1,3 @@
package other
var other = "other"
@@ -0,0 +1,8 @@
package test
fun main(args: Array<String>) {
val x = a + b + other.other
a = "aa"
b = "bb"
other.other = "other.other"
}
@@ -0,0 +1,8 @@
package test
fun main(args: Array<String>) {
val x = a + b + other.other
a = "aa"
b = "bb"
other.other = "other.other"
}