[FIR] Fix deserialization of generic context receivers

We need to pass the local deserialization context so that generic
type parameters can be referenced.

#KT-62607 Fixed
This commit is contained in:
Kirill Rakhman
2023-10-26 15:10:09 +02:00
committed by Space Team
parent 45a1cc1a4a
commit ef78d4b95a
17 changed files with 87 additions and 5 deletions
@@ -247,6 +247,11 @@ public class IncrementalFirICLightTreeJvmCompilerRunnerTestGenerated extends Abs
runTest("jps/jps-plugin/testData/incremental/pureKotlin/functionReferencingClass/");
}
@TestMetadata("genericContextReceiver")
public void testGenericContextReceiver() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/genericContextReceiver/");
}
@TestMetadata("independentClasses")
public void testIndependentClasses() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/independentClasses/");
@@ -247,6 +247,11 @@ public class IncrementalFirLightTreeJvmCompilerRunnerTestGenerated extends Abstr
runTest("jps/jps-plugin/testData/incremental/pureKotlin/functionReferencingClass/");
}
@TestMetadata("genericContextReceiver")
public void testGenericContextReceiver() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/genericContextReceiver/");
}
@TestMetadata("independentClasses")
public void testIndependentClasses() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/independentClasses/");
@@ -256,6 +256,11 @@ public class IncrementalK1JsKlibCompilerRunnerTestGenerated extends AbstractIncr
runTest("jps/jps-plugin/testData/incremental/pureKotlin/functionReferencingClass/");
}
@TestMetadata("genericContextReceiver")
public void testGenericContextReceiver() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/genericContextReceiver/");
}
@TestMetadata("independentClasses")
public void testIndependentClasses() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/independentClasses/");
@@ -256,6 +256,11 @@ public class IncrementalK1JsKlibCompilerWithScopeExpansionRunnerTestGenerated ex
runTest("jps/jps-plugin/testData/incremental/pureKotlin/functionReferencingClass/");
}
@TestMetadata("genericContextReceiver")
public void testGenericContextReceiver() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/genericContextReceiver/");
}
@TestMetadata("independentClasses")
public void testIndependentClasses() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/independentClasses/");
@@ -257,6 +257,11 @@ public class IncrementalK1JvmCompilerRunnerTestGenerated extends AbstractIncreme
runTest("jps/jps-plugin/testData/incremental/pureKotlin/functionReferencingClass/");
}
@TestMetadata("genericContextReceiver")
public void testGenericContextReceiver() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/genericContextReceiver/");
}
@TestMetadata("independentClasses")
public void testIndependentClasses() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/independentClasses/");
@@ -241,6 +241,11 @@ public class IncrementalK2JsKlibCompilerWithScopeExpansionRunnerTestGenerated ex
runTest("jps/jps-plugin/testData/incremental/pureKotlin/functionReferencingClass/");
}
@TestMetadata("genericContextReceiver")
public void testGenericContextReceiver() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/genericContextReceiver/");
}
@TestMetadata("independentClasses")
public void testIndependentClasses() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/independentClasses/");
@@ -247,6 +247,11 @@ public class IncrementalK2JvmCompilerRunnerTestGenerated extends AbstractIncreme
runTest("jps/jps-plugin/testData/incremental/pureKotlin/functionReferencingClass/");
}
@TestMetadata("genericContextReceiver")
public void testGenericContextReceiver() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/genericContextReceiver/");
}
@TestMetadata("independentClasses")
public void testIndependentClasses() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/independentClasses/");