KT-7587 Overloads are not generated during partial compilation of package

#KT-7587 fixed

Original commit: 0498bd7739
This commit is contained in:
Evgeny Gerashchenko
2015-05-13 16:21:13 +03:00
parent 395e5446fb
commit c445089f21
10 changed files with 74 additions and 0 deletions
@@ -299,6 +299,12 @@ public class IncrementalJpsTestGenerated extends AbstractIncrementalJpsTest {
doTest(fileName);
}
@TestMetadata("optionalParameter")
public void testOptionalParameter() throws Exception {
String fileName = JetTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/optionalParameter/");
doTest(fileName);
}
@TestMetadata("ourClassReferenced")
public void testOurClassReferenced() throws Exception {
String fileName = JetTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/ourClassReferenced/");
@@ -552,6 +558,12 @@ public class IncrementalJpsTestGenerated extends AbstractIncrementalJpsTest {
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class KotlinUsedInJava extends AbstractIncrementalJpsTest {
@TestMetadata("addOptionalParameter")
public void testAddOptionalParameter() throws Exception {
String fileName = JetTestUtils.navigationMetadata("jps-plugin/testData/incremental/withJava/kotlinUsedInJava/addOptionalParameter/");
doTest(fileName);
}
public void testAllFilesPresentInKotlinUsedInJava() throws Exception {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("jps-plugin/testData/incremental/withJava/kotlinUsedInJava"), Pattern.compile("^([^\\.]+)$"), true);
}
@@ -0,0 +1,7 @@
Cleaning output files:
out/production/module/test/TestPackage$other$*.class
out/production/module/test/TestPackage.class
End of files
Compiling files:
src/other.kt
End of files
@@ -0,0 +1,6 @@
package test
kotlin.jvm.overloads
fun f(a: String, b: Int = 5) {
}
@@ -0,0 +1,5 @@
package test
fun other() {
}
@@ -0,0 +1,5 @@
package test
fun other() {
}
@@ -0,0 +1,5 @@
class JavaUsage {
public static void main(String[] args) {
test.TestPackage.f("x");
}
}
@@ -0,0 +1,18 @@
Cleaning output files:
out/production/module/test/TestPackage$fun$*.class
out/production/module/test/TestPackage.class
End of files
Compiling files:
src/fun.kt
End of files
Cleaning output files:
out/production/module/JavaUsage.class
out/production/module/test/TestPackage$other$*.class
out/production/module/test/TestPackage.class
End of files
Compiling files:
src/other.kt
End of files
Compiling files:
src/JavaUsage.java
End of files
@@ -0,0 +1,5 @@
package test
fun f(a: String) {
}
@@ -0,0 +1,6 @@
package test
kotlin.jvm.overloads
fun f(a: String, b: Int = 5) {
}
@@ -0,0 +1,5 @@
package test
fun other() {
}