Fix for KT-14012: Back-end (JVM) Internal error every first compilation after the source code change
#KT-14012 Fixed
Original commit: d48ef2efc7
This commit is contained in:
+12
@@ -821,6 +821,18 @@ public class ExperimentalIncrementalJpsTestGenerated extends AbstractExperimenta
|
|||||||
doTest(fileName);
|
doTest(fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("publicPropertyWithPrivateSetter")
|
||||||
|
public void testPublicPropertyWithPrivateSetter() throws Exception {
|
||||||
|
String fileName = KotlinTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/publicPropertyWithPrivateSetter/");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
|
@TestMetadata("publicPropertyWithPrivateSetterMultiFileFacade")
|
||||||
|
public void testPublicPropertyWithPrivateSetterMultiFileFacade() throws Exception {
|
||||||
|
String fileName = KotlinTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/publicPropertyWithPrivateSetterMultiFileFacade/");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("removeAndRestoreCompanion")
|
@TestMetadata("removeAndRestoreCompanion")
|
||||||
public void testRemoveAndRestoreCompanion() throws Exception {
|
public void testRemoveAndRestoreCompanion() throws Exception {
|
||||||
String fileName = KotlinTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/removeAndRestoreCompanion/");
|
String fileName = KotlinTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/removeAndRestoreCompanion/");
|
||||||
|
|||||||
+12
@@ -821,6 +821,18 @@ public class IncrementalJpsTestGenerated extends AbstractIncrementalJpsTest {
|
|||||||
doTest(fileName);
|
doTest(fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("publicPropertyWithPrivateSetter")
|
||||||
|
public void testPublicPropertyWithPrivateSetter() throws Exception {
|
||||||
|
String fileName = KotlinTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/publicPropertyWithPrivateSetter/");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
|
@TestMetadata("publicPropertyWithPrivateSetterMultiFileFacade")
|
||||||
|
public void testPublicPropertyWithPrivateSetterMultiFileFacade() throws Exception {
|
||||||
|
String fileName = KotlinTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/publicPropertyWithPrivateSetterMultiFileFacade/");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("removeAndRestoreCompanion")
|
@TestMetadata("removeAndRestoreCompanion")
|
||||||
public void testRemoveAndRestoreCompanion() throws Exception {
|
public void testRemoveAndRestoreCompanion() throws Exception {
|
||||||
String fileName = KotlinTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/removeAndRestoreCompanion/");
|
String fileName = KotlinTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/removeAndRestoreCompanion/");
|
||||||
|
|||||||
+11
@@ -0,0 +1,11 @@
|
|||||||
|
================ Step #1 =================
|
||||||
|
|
||||||
|
Cleaning output files:
|
||||||
|
out/production/module/META-INF/module.kotlin_module
|
||||||
|
out/production/module/test2/Prop2Kt.class
|
||||||
|
End of files
|
||||||
|
Compiling files:
|
||||||
|
src/prop2.kt
|
||||||
|
End of files
|
||||||
|
Exit code: OK
|
||||||
|
------------------------------------------
|
||||||
+4
@@ -0,0 +1,4 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
var property = 1
|
||||||
|
private set
|
||||||
+6
@@ -0,0 +1,6 @@
|
|||||||
|
package test2
|
||||||
|
import test.*
|
||||||
|
|
||||||
|
fun dummy() {
|
||||||
|
if (true) 1 else property
|
||||||
|
}
|
||||||
+5
@@ -0,0 +1,5 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
fun dummy() {
|
||||||
|
if (true) 2 else property
|
||||||
|
}
|
||||||
+11
@@ -0,0 +1,11 @@
|
|||||||
|
================ Step #1 =================
|
||||||
|
|
||||||
|
Cleaning output files:
|
||||||
|
out/production/module/META-INF/module.kotlin_module
|
||||||
|
out/production/module/test2/Prop2Kt.class
|
||||||
|
End of files
|
||||||
|
Compiling files:
|
||||||
|
src/prop2.kt
|
||||||
|
End of files
|
||||||
|
Exit code: OK
|
||||||
|
------------------------------------------
|
||||||
+6
@@ -0,0 +1,6 @@
|
|||||||
|
@file:JvmName("TTest")
|
||||||
|
@file:JvmMultifileClass
|
||||||
|
package test
|
||||||
|
|
||||||
|
var property = 1
|
||||||
|
private set
|
||||||
+6
@@ -0,0 +1,6 @@
|
|||||||
|
package test2
|
||||||
|
import test.*
|
||||||
|
|
||||||
|
fun dummy() {
|
||||||
|
if (true) 1 else property
|
||||||
|
}
|
||||||
+5
@@ -0,0 +1,5 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
fun dummy() {
|
||||||
|
if (true) 2 else property
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user