Fix: not loading ancestor packages from incremental cache.
Original commit: b435904d7f
This commit is contained in:
@@ -275,6 +275,12 @@ public class IncrementalJpsTestGenerated extends AbstractIncrementalJpsTest {
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("subpackage")
|
||||
public void testSubpackage() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/subpackage/");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelFunctionSameSignature")
|
||||
public void testTopLevelFunctionSameSignature() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/topLevelFunctionSameSignature/");
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
Cleaning output files:
|
||||
out/production/module/outer/nested/NestedPackage$main$1.class
|
||||
out/production/module/outer/nested/NestedPackage-nested-*.class
|
||||
out/production/module/outer/nested/NestedPackage.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/nested.kt
|
||||
End of files
|
||||
@@ -0,0 +1,12 @@
|
||||
package outer.nested
|
||||
|
||||
import outer.f
|
||||
|
||||
fun g() {
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
f { }
|
||||
g()
|
||||
}
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
package outer.nested
|
||||
|
||||
import outer.f
|
||||
|
||||
fun g() {
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
f { }
|
||||
g()
|
||||
}
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
package outer
|
||||
|
||||
fun f(c: () -> Unit) {
|
||||
}
|
||||
|
||||
fun <T> f(c: () -> T): String = ""
|
||||
|
||||
Reference in New Issue
Block a user