[IC] Add test for lookups flushing
#KT-53168
This commit is contained in:
committed by
Space
parent
7d6cf449b1
commit
0950205a47
+5
@@ -627,6 +627,11 @@ public class IncrementalFirICLightTreeJvmCompilerRunnerTestGenerated extends Abs
|
|||||||
runTest("jps/jps-plugin/testData/incremental/pureKotlin/secondaryConstructorInlined/");
|
runTest("jps/jps-plugin/testData/incremental/pureKotlin/secondaryConstructorInlined/");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("sequentualAddingAndDeletingOfPropertyAndUsage")
|
||||||
|
public void testSequentualAddingAndDeletingOfPropertyAndUsage() throws Exception {
|
||||||
|
runTest("jps/jps-plugin/testData/incremental/pureKotlin/sequentualAddingAndDeletingOfPropertyAndUsage/");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("serializedSubClassAndChangedInterfaces")
|
@TestMetadata("serializedSubClassAndChangedInterfaces")
|
||||||
public void testSerializedSubClassAndChangedInterfaces() throws Exception {
|
public void testSerializedSubClassAndChangedInterfaces() throws Exception {
|
||||||
runTest("jps/jps-plugin/testData/incremental/pureKotlin/serializedSubClassAndChangedInterfaces/");
|
runTest("jps/jps-plugin/testData/incremental/pureKotlin/serializedSubClassAndChangedInterfaces/");
|
||||||
|
|||||||
+5
@@ -627,6 +627,11 @@ public class IncrementalFirJvmCompilerRunnerTestGenerated extends AbstractIncrem
|
|||||||
runTest("jps/jps-plugin/testData/incremental/pureKotlin/secondaryConstructorInlined/");
|
runTest("jps/jps-plugin/testData/incremental/pureKotlin/secondaryConstructorInlined/");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("sequentualAddingAndDeletingOfPropertyAndUsage")
|
||||||
|
public void testSequentualAddingAndDeletingOfPropertyAndUsage() throws Exception {
|
||||||
|
runTest("jps/jps-plugin/testData/incremental/pureKotlin/sequentualAddingAndDeletingOfPropertyAndUsage/");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("serializedSubClassAndChangedInterfaces")
|
@TestMetadata("serializedSubClassAndChangedInterfaces")
|
||||||
public void testSerializedSubClassAndChangedInterfaces() throws Exception {
|
public void testSerializedSubClassAndChangedInterfaces() throws Exception {
|
||||||
runTest("jps/jps-plugin/testData/incremental/pureKotlin/serializedSubClassAndChangedInterfaces/");
|
runTest("jps/jps-plugin/testData/incremental/pureKotlin/serializedSubClassAndChangedInterfaces/");
|
||||||
|
|||||||
+5
@@ -627,6 +627,11 @@ public class IncrementalFirLightTreeJvmCompilerRunnerTestGenerated extends Abstr
|
|||||||
runTest("jps/jps-plugin/testData/incremental/pureKotlin/secondaryConstructorInlined/");
|
runTest("jps/jps-plugin/testData/incremental/pureKotlin/secondaryConstructorInlined/");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("sequentualAddingAndDeletingOfPropertyAndUsage")
|
||||||
|
public void testSequentualAddingAndDeletingOfPropertyAndUsage() throws Exception {
|
||||||
|
runTest("jps/jps-plugin/testData/incremental/pureKotlin/sequentualAddingAndDeletingOfPropertyAndUsage/");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("serializedSubClassAndChangedInterfaces")
|
@TestMetadata("serializedSubClassAndChangedInterfaces")
|
||||||
public void testSerializedSubClassAndChangedInterfaces() throws Exception {
|
public void testSerializedSubClassAndChangedInterfaces() throws Exception {
|
||||||
runTest("jps/jps-plugin/testData/incremental/pureKotlin/serializedSubClassAndChangedInterfaces/");
|
runTest("jps/jps-plugin/testData/incremental/pureKotlin/serializedSubClassAndChangedInterfaces/");
|
||||||
|
|||||||
+5
@@ -631,6 +631,11 @@ public class IncrementalJsCompilerRunnerTestGenerated extends AbstractIncrementa
|
|||||||
runTest("jps/jps-plugin/testData/incremental/pureKotlin/secondaryConstructorInlined/");
|
runTest("jps/jps-plugin/testData/incremental/pureKotlin/secondaryConstructorInlined/");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("sequentualAddingAndDeletingOfPropertyAndUsage")
|
||||||
|
public void testSequentualAddingAndDeletingOfPropertyAndUsage() throws Exception {
|
||||||
|
runTest("jps/jps-plugin/testData/incremental/pureKotlin/sequentualAddingAndDeletingOfPropertyAndUsage/");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("serializedSubClassAndChangedInterfaces")
|
@TestMetadata("serializedSubClassAndChangedInterfaces")
|
||||||
public void testSerializedSubClassAndChangedInterfaces() throws Exception {
|
public void testSerializedSubClassAndChangedInterfaces() throws Exception {
|
||||||
runTest("jps/jps-plugin/testData/incremental/pureKotlin/serializedSubClassAndChangedInterfaces/");
|
runTest("jps/jps-plugin/testData/incremental/pureKotlin/serializedSubClassAndChangedInterfaces/");
|
||||||
|
|||||||
+5
@@ -631,6 +631,11 @@ public class IncrementalJsCompilerRunnerWithMetadataOnlyTestGenerated extends Ab
|
|||||||
runTest("jps/jps-plugin/testData/incremental/pureKotlin/secondaryConstructorInlined/");
|
runTest("jps/jps-plugin/testData/incremental/pureKotlin/secondaryConstructorInlined/");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("sequentualAddingAndDeletingOfPropertyAndUsage")
|
||||||
|
public void testSequentualAddingAndDeletingOfPropertyAndUsage() throws Exception {
|
||||||
|
runTest("jps/jps-plugin/testData/incremental/pureKotlin/sequentualAddingAndDeletingOfPropertyAndUsage/");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("serializedSubClassAndChangedInterfaces")
|
@TestMetadata("serializedSubClassAndChangedInterfaces")
|
||||||
public void testSerializedSubClassAndChangedInterfaces() throws Exception {
|
public void testSerializedSubClassAndChangedInterfaces() throws Exception {
|
||||||
runTest("jps/jps-plugin/testData/incremental/pureKotlin/serializedSubClassAndChangedInterfaces/");
|
runTest("jps/jps-plugin/testData/incremental/pureKotlin/serializedSubClassAndChangedInterfaces/");
|
||||||
|
|||||||
+5
@@ -596,6 +596,11 @@ public class IncrementalJsKlibCompilerRunnerTestGenerated extends AbstractIncrem
|
|||||||
runTest("jps/jps-plugin/testData/incremental/pureKotlin/secondaryConstructorInlined/");
|
runTest("jps/jps-plugin/testData/incremental/pureKotlin/secondaryConstructorInlined/");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("sequentualAddingAndDeletingOfPropertyAndUsage")
|
||||||
|
public void testSequentualAddingAndDeletingOfPropertyAndUsage() throws Exception {
|
||||||
|
runTest("jps/jps-plugin/testData/incremental/pureKotlin/sequentualAddingAndDeletingOfPropertyAndUsage/");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("serializedSubClassAndChangedInterfaces")
|
@TestMetadata("serializedSubClassAndChangedInterfaces")
|
||||||
public void testSerializedSubClassAndChangedInterfaces() throws Exception {
|
public void testSerializedSubClassAndChangedInterfaces() throws Exception {
|
||||||
runTest("jps/jps-plugin/testData/incremental/pureKotlin/serializedSubClassAndChangedInterfaces/");
|
runTest("jps/jps-plugin/testData/incremental/pureKotlin/serializedSubClassAndChangedInterfaces/");
|
||||||
|
|||||||
+5
@@ -596,6 +596,11 @@ public class IncrementalJsKlibCompilerWithScopeExpansionRunnerTestGenerated exte
|
|||||||
runTest("jps/jps-plugin/testData/incremental/pureKotlin/secondaryConstructorInlined/");
|
runTest("jps/jps-plugin/testData/incremental/pureKotlin/secondaryConstructorInlined/");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("sequentualAddingAndDeletingOfPropertyAndUsage")
|
||||||
|
public void testSequentualAddingAndDeletingOfPropertyAndUsage() throws Exception {
|
||||||
|
runTest("jps/jps-plugin/testData/incremental/pureKotlin/sequentualAddingAndDeletingOfPropertyAndUsage/");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("serializedSubClassAndChangedInterfaces")
|
@TestMetadata("serializedSubClassAndChangedInterfaces")
|
||||||
public void testSerializedSubClassAndChangedInterfaces() throws Exception {
|
public void testSerializedSubClassAndChangedInterfaces() throws Exception {
|
||||||
runTest("jps/jps-plugin/testData/incremental/pureKotlin/serializedSubClassAndChangedInterfaces/");
|
runTest("jps/jps-plugin/testData/incremental/pureKotlin/serializedSubClassAndChangedInterfaces/");
|
||||||
|
|||||||
+5
@@ -632,6 +632,11 @@ public class IncrementalJvmCompilerRunnerTestGenerated extends AbstractIncrement
|
|||||||
runTest("jps/jps-plugin/testData/incremental/pureKotlin/secondaryConstructorInlined/");
|
runTest("jps/jps-plugin/testData/incremental/pureKotlin/secondaryConstructorInlined/");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("sequentualAddingAndDeletingOfPropertyAndUsage")
|
||||||
|
public void testSequentualAddingAndDeletingOfPropertyAndUsage() throws Exception {
|
||||||
|
runTest("jps/jps-plugin/testData/incremental/pureKotlin/sequentualAddingAndDeletingOfPropertyAndUsage/");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("serializedSubClassAndChangedInterfaces")
|
@TestMetadata("serializedSubClassAndChangedInterfaces")
|
||||||
public void testSerializedSubClassAndChangedInterfaces() throws Exception {
|
public void testSerializedSubClassAndChangedInterfaces() throws Exception {
|
||||||
runTest("jps/jps-plugin/testData/incremental/pureKotlin/serializedSubClassAndChangedInterfaces/");
|
runTest("jps/jps-plugin/testData/incremental/pureKotlin/serializedSubClassAndChangedInterfaces/");
|
||||||
|
|||||||
+5
@@ -632,6 +632,11 @@ public class IncrementalJvmOldBackendCompilerRunnerTestGenerated extends Abstrac
|
|||||||
runTest("jps/jps-plugin/testData/incremental/pureKotlin/secondaryConstructorInlined/");
|
runTest("jps/jps-plugin/testData/incremental/pureKotlin/secondaryConstructorInlined/");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("sequentualAddingAndDeletingOfPropertyAndUsage")
|
||||||
|
public void testSequentualAddingAndDeletingOfPropertyAndUsage() throws Exception {
|
||||||
|
runTest("jps/jps-plugin/testData/incremental/pureKotlin/sequentualAddingAndDeletingOfPropertyAndUsage/");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("serializedSubClassAndChangedInterfaces")
|
@TestMetadata("serializedSubClassAndChangedInterfaces")
|
||||||
public void testSerializedSubClassAndChangedInterfaces() throws Exception {
|
public void testSerializedSubClassAndChangedInterfaces() throws Exception {
|
||||||
runTest("jps/jps-plugin/testData/incremental/pureKotlin/serializedSubClassAndChangedInterfaces/");
|
runTest("jps/jps-plugin/testData/incremental/pureKotlin/serializedSubClassAndChangedInterfaces/");
|
||||||
|
|||||||
Generated
+5
@@ -1301,6 +1301,11 @@ public class IncrementalJvmJpsTestGenerated extends AbstractIncrementalJvmJpsTes
|
|||||||
runTest("jps/jps-plugin/testData/incremental/pureKotlin/secondaryConstructorInlined/");
|
runTest("jps/jps-plugin/testData/incremental/pureKotlin/secondaryConstructorInlined/");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("sequentualAddingAndDeletingOfPropertyAndUsage")
|
||||||
|
public void testSequentualAddingAndDeletingOfPropertyAndUsage() throws Exception {
|
||||||
|
runTest("jps/jps-plugin/testData/incremental/pureKotlin/sequentualAddingAndDeletingOfPropertyAndUsage/");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("serializedSubClassAndChangedInterfaces")
|
@TestMetadata("serializedSubClassAndChangedInterfaces")
|
||||||
public void testSerializedSubClassAndChangedInterfaces() throws Exception {
|
public void testSerializedSubClassAndChangedInterfaces() throws Exception {
|
||||||
runTest("jps/jps-plugin/testData/incremental/pureKotlin/serializedSubClassAndChangedInterfaces/");
|
runTest("jps/jps-plugin/testData/incremental/pureKotlin/serializedSubClassAndChangedInterfaces/");
|
||||||
|
|||||||
+4
@@ -0,0 +1,4 @@
|
|||||||
|
data class DatClass(
|
||||||
|
val a: Boolean = false,
|
||||||
|
val b: Int = 1
|
||||||
|
)
|
||||||
+3
@@ -0,0 +1,3 @@
|
|||||||
|
data class DatClass(
|
||||||
|
val a: Boolean = false
|
||||||
|
)
|
||||||
+4
@@ -0,0 +1,4 @@
|
|||||||
|
data class DatClass(
|
||||||
|
val a: Boolean = false,
|
||||||
|
val b: Int = 1
|
||||||
|
)
|
||||||
+3
@@ -0,0 +1,3 @@
|
|||||||
|
data class DatClass(
|
||||||
|
val a: Boolean = false,
|
||||||
|
)
|
||||||
+94
@@ -0,0 +1,94 @@
|
|||||||
|
================ Step #1 =================
|
||||||
|
|
||||||
|
Cleaning output files:
|
||||||
|
out/production/module/META-INF/module.kotlin_module
|
||||||
|
out/production/module/MainKt.class
|
||||||
|
End of files
|
||||||
|
Compiling files:
|
||||||
|
src/main.kt
|
||||||
|
End of files
|
||||||
|
Exit code: OK
|
||||||
|
------------------------------------------
|
||||||
|
|
||||||
|
================ Step #2 =================
|
||||||
|
|
||||||
|
Cleaning output files:
|
||||||
|
out/production/module/DatClass.class
|
||||||
|
out/production/module/META-INF/module.kotlin_module
|
||||||
|
End of files
|
||||||
|
Compiling files:
|
||||||
|
src/DataClass.kt
|
||||||
|
End of files
|
||||||
|
After build round. Marked as dirty by Kotlin:
|
||||||
|
src/main.kt
|
||||||
|
Exit code: ADDITIONAL_PASS_REQUIRED
|
||||||
|
------------------------------------------
|
||||||
|
Cleaning output files:
|
||||||
|
out/production/module/META-INF/module.kotlin_module
|
||||||
|
out/production/module/MainKt.class
|
||||||
|
End of files
|
||||||
|
Compiling files:
|
||||||
|
src/main.kt
|
||||||
|
End of files
|
||||||
|
Exit code: OK
|
||||||
|
------------------------------------------
|
||||||
|
|
||||||
|
================ Step #3 =================
|
||||||
|
|
||||||
|
Cleaning output files:
|
||||||
|
out/production/module/DatClass.class
|
||||||
|
out/production/module/META-INF/module.kotlin_module
|
||||||
|
End of files
|
||||||
|
Compiling files:
|
||||||
|
src/DataClass.kt
|
||||||
|
End of files
|
||||||
|
After build round. Marked as dirty by Kotlin:
|
||||||
|
src/main.kt
|
||||||
|
Exit code: ADDITIONAL_PASS_REQUIRED
|
||||||
|
------------------------------------------
|
||||||
|
Cleaning output files:
|
||||||
|
out/production/module/META-INF/module.kotlin_module
|
||||||
|
out/production/module/MainKt.class
|
||||||
|
End of files
|
||||||
|
Compiling files:
|
||||||
|
src/main.kt
|
||||||
|
End of files
|
||||||
|
Exit code: OK
|
||||||
|
------------------------------------------
|
||||||
|
|
||||||
|
================ Step #4 =================
|
||||||
|
|
||||||
|
Cleaning output files:
|
||||||
|
out/production/module/META-INF/module.kotlin_module
|
||||||
|
out/production/module/MainKt.class
|
||||||
|
End of files
|
||||||
|
Compiling files:
|
||||||
|
src/main.kt
|
||||||
|
End of files
|
||||||
|
Exit code: OK
|
||||||
|
------------------------------------------
|
||||||
|
|
||||||
|
================ Step #5 =================
|
||||||
|
|
||||||
|
Cleaning output files:
|
||||||
|
out/production/module/DatClass.class
|
||||||
|
out/production/module/META-INF/module.kotlin_module
|
||||||
|
End of files
|
||||||
|
Compiling files:
|
||||||
|
src/DataClass.kt
|
||||||
|
End of files
|
||||||
|
After build round. Marked as dirty by Kotlin:
|
||||||
|
src/main.kt
|
||||||
|
Exit code: ADDITIONAL_PASS_REQUIRED
|
||||||
|
------------------------------------------
|
||||||
|
Cleaning output files:
|
||||||
|
out/production/module/META-INF/module.kotlin_module
|
||||||
|
out/production/module/MainKt.class
|
||||||
|
End of files
|
||||||
|
Compiling files:
|
||||||
|
src/main.kt
|
||||||
|
End of files
|
||||||
|
Exit code: ABORT
|
||||||
|
------------------------------------------
|
||||||
|
COMPILATION FAILED
|
||||||
|
Cannot find a parameter with this name: b
|
||||||
jps/jps-plugin/testData/incremental/pureKotlin/sequentualAddingAndDeletingOfPropertyAndUsage/main.kt
Vendored
+6
@@ -0,0 +1,6 @@
|
|||||||
|
fun main(args: Array<String>) {
|
||||||
|
DatClass(
|
||||||
|
a=true,
|
||||||
|
b= 3
|
||||||
|
)
|
||||||
|
}
|
||||||
+5
@@ -0,0 +1,5 @@
|
|||||||
|
fun main(args: Array<String>) {
|
||||||
|
DatClass(
|
||||||
|
a=true
|
||||||
|
)
|
||||||
|
}
|
||||||
+6
@@ -0,0 +1,6 @@
|
|||||||
|
fun main(args: Array<String>) {
|
||||||
|
DatClass(
|
||||||
|
a=true,
|
||||||
|
b= 3
|
||||||
|
)
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user