Implement (failing) test for FIR IC - as in KT-49750
This commit is contained in:
+5
@@ -879,6 +879,11 @@ public class IncrementalFirJvmCompilerRunnerTestGenerated extends AbstractIncrem
|
||||
public void testVarianceChanged() throws Exception {
|
||||
runTest("jps-plugin/testData/incremental/classHierarchyAffected/varianceChanged/");
|
||||
}
|
||||
|
||||
@TestMetadata("withIntermediateBodiesChanged")
|
||||
public void testWithIntermediateBodiesChanged() throws Exception {
|
||||
runTest("jps-plugin/testData/incremental/classHierarchyAffected/withIntermediateBodiesChanged/");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("jps-plugin/testData/incremental/inlineFunCallSite")
|
||||
|
||||
+5
@@ -878,6 +878,11 @@ public class IncrementalJsCompilerRunnerTestGenerated extends AbstractIncrementa
|
||||
public void testVarianceChanged() throws Exception {
|
||||
runTest("jps-plugin/testData/incremental/classHierarchyAffected/varianceChanged/");
|
||||
}
|
||||
|
||||
@TestMetadata("withIntermediateBodiesChanged")
|
||||
public void testWithIntermediateBodiesChanged() throws Exception {
|
||||
runTest("jps-plugin/testData/incremental/classHierarchyAffected/withIntermediateBodiesChanged/");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("jps-plugin/testData/incremental/js")
|
||||
|
||||
+5
@@ -878,6 +878,11 @@ public class IncrementalJsCompilerRunnerWithMetadataOnlyTestGenerated extends Ab
|
||||
public void testVarianceChanged() throws Exception {
|
||||
runTest("jps-plugin/testData/incremental/classHierarchyAffected/varianceChanged/");
|
||||
}
|
||||
|
||||
@TestMetadata("withIntermediateBodiesChanged")
|
||||
public void testWithIntermediateBodiesChanged() throws Exception {
|
||||
runTest("jps-plugin/testData/incremental/classHierarchyAffected/withIntermediateBodiesChanged/");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("jps-plugin/testData/incremental/js")
|
||||
|
||||
+5
@@ -853,6 +853,11 @@ public class IncrementalJsKlibCompilerRunnerTestGenerated extends AbstractIncrem
|
||||
public void testVarianceChanged() throws Exception {
|
||||
runTest("jps-plugin/testData/incremental/classHierarchyAffected/varianceChanged/");
|
||||
}
|
||||
|
||||
@TestMetadata("withIntermediateBodiesChanged")
|
||||
public void testWithIntermediateBodiesChanged() throws Exception {
|
||||
runTest("jps-plugin/testData/incremental/classHierarchyAffected/withIntermediateBodiesChanged/");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("jps-plugin/testData/incremental/js")
|
||||
|
||||
+5
@@ -853,6 +853,11 @@ public class IncrementalJsKlibCompilerWithScopeExpansionRunnerTestGenerated exte
|
||||
public void testVarianceChanged() throws Exception {
|
||||
runTest("jps-plugin/testData/incremental/classHierarchyAffected/varianceChanged/");
|
||||
}
|
||||
|
||||
@TestMetadata("withIntermediateBodiesChanged")
|
||||
public void testWithIntermediateBodiesChanged() throws Exception {
|
||||
runTest("jps-plugin/testData/incremental/classHierarchyAffected/withIntermediateBodiesChanged/");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("jps-plugin/testData/incremental/js")
|
||||
|
||||
+5
@@ -879,6 +879,11 @@ public class IncrementalJvmCompilerRunnerTestGenerated extends AbstractIncrement
|
||||
public void testVarianceChanged() throws Exception {
|
||||
runTest("jps-plugin/testData/incremental/classHierarchyAffected/varianceChanged/");
|
||||
}
|
||||
|
||||
@TestMetadata("withIntermediateBodiesChanged")
|
||||
public void testWithIntermediateBodiesChanged() throws Exception {
|
||||
runTest("jps-plugin/testData/incremental/classHierarchyAffected/withIntermediateBodiesChanged/");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("jps-plugin/testData/incremental/inlineFunCallSite")
|
||||
|
||||
+5
@@ -879,6 +879,11 @@ public class IncrementalJvmOldBackendCompilerRunnerTestGenerated extends Abstrac
|
||||
public void testVarianceChanged() throws Exception {
|
||||
runTest("jps-plugin/testData/incremental/classHierarchyAffected/varianceChanged/");
|
||||
}
|
||||
|
||||
@TestMetadata("withIntermediateBodiesChanged")
|
||||
public void testWithIntermediateBodiesChanged() throws Exception {
|
||||
runTest("jps-plugin/testData/incremental/classHierarchyAffected/withIntermediateBodiesChanged/");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("jps-plugin/testData/incremental/inlineFunCallSite")
|
||||
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
package foo
|
||||
|
||||
open class DirectInter : DirectBase()
|
||||
jps-plugin/testData/incremental/classHierarchyAffected/withIntermediateBodiesChanged/ReverseInter.kt
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
package foo
|
||||
|
||||
open class ReverseInter : ReverseBase()
|
||||
Vendored
+18
@@ -0,0 +1,18 @@
|
||||
================ Step #1 =================
|
||||
|
||||
Cleaning output files:
|
||||
End of files
|
||||
Compiling files:
|
||||
src/direct.kt
|
||||
End of files
|
||||
Exit code: OK
|
||||
|
||||
================ Step #2 =================
|
||||
|
||||
Cleaning output files:
|
||||
End of files
|
||||
Compiling files:
|
||||
src/reverse.kt
|
||||
End of files
|
||||
Exit code: OK
|
||||
------------------------------------------
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
package foo
|
||||
|
||||
open class DirectBase {
|
||||
open val x get() = 0
|
||||
}
|
||||
|
||||
class DirectChild : DirectInter()
|
||||
jps-plugin/testData/incremental/classHierarchyAffected/withIntermediateBodiesChanged/direct.kt.new.1
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
package foo
|
||||
|
||||
// order is important, see KT-49750
|
||||
|
||||
open class DirectBase {
|
||||
open val x get() = 1
|
||||
}
|
||||
|
||||
class DirectChild : DirectInter() {
|
||||
override val x get() = 3
|
||||
}
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
package foo
|
||||
|
||||
class ReverseChild : ReverseInter()
|
||||
|
||||
open class ReverseBase {
|
||||
open val x get() = 0
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package foo
|
||||
|
||||
// order is important, see KT-49750
|
||||
|
||||
class ReverseChild : ReverseInter() {
|
||||
override val x get() = 5
|
||||
}
|
||||
|
||||
open class ReverseBase {
|
||||
open val x get() = 2
|
||||
}
|
||||
Reference in New Issue
Block a user